80 Commits

Author SHA1 Message Date
faef0b0229 feat: support importHelpers config option 2022-05-04 13:01:31 -03:00
8be543bcc7 feat: testID property for use with e2e testing without interfering with a11y (#9793)
* fix(android): nested frames were sometimes not recreated (#9748)

Co-authored-by: Eduardo Speroni <edusperoni@gmail.com>

* feat: testID property for use with e2e testing without interfering with a11y

* feat: better testID support along a11y

wip

* fix: make sure we have a defined id

* feat: --env.e2e to enable testID

* chore: return if using testID

* chore: cleanup

Co-authored-by: Eduardo Speroni <edusperoni@gmail.com>
Co-authored-by: Igor Randjelovic <rigor789@gmail.com>
2022-03-08 23:25:05 +01:00
af4b7e3b33 feat: support webpack profiling (#9804)
Co-authored-by: Martin Guillon <martin.guillon@akylas.fr>
2022-03-03 10:22:28 +01:00
4fa51b6064 feat(webpack): add support for .mjs files (#9747)
Co-authored-by: Igor Randjelovic <rigor789@gmail.com>
2022-02-18 13:58:44 +01:00
9c9c831ac0 feat(webpack): allow watching node_modules (#9781) 2022-02-18 13:39:28 +01:00
cb7bd2a401 fix(webpack): exclude other platforms from require.context (#9686)
fixes #9682
2022-02-18 13:37:32 +01:00
a88cacab89 chore(migrate): apps/* to webpack5 (#9606) 2021-12-21 09:47:33 -08:00
05082b1aec fix(webpack5): include hmr handling only when enabled (#9685)
* fix(webpack): respect hmr flag

* fix(webpack): ensure correct loader order is used

* chore: cleanup

Co-authored-by: Igor Randjelovic <rigor789@gmail.com>
2021-11-29 17:55:10 +01:00
5ff85bfae9 fix: include bundle-entry-points by default 2021-09-08 16:12:11 -07:00
3bdc34aec3 refactor(webpack): drop custom flavor helper & explicitly set in each config 2021-09-08 16:07:39 -07:00
dd5f24a737 feat(core): make css parsers tree-shakable (#9496) 2021-09-08 16:07:38 -07:00
5309f2d0a7 fix(webpack): use async type-checking in watch mode 2021-08-03 15:41:49 +02:00
0a6f80a554 fix(webpack): don't ignore compilation errors (#9369)
* fix(webpack): Fail build in case of compilation errors.

WebPack's own documentation states that the `err` object **will not**
include compilation errors.

https://webpack.js.org/api/node/#webpack

This fix addresses compilation errors by setting the correct `process.exitCode`
looking at the result of the `stats.hasErrors()` call.

* fix(tsc): Ensure that TypeScript compilation errors are handled.

The `async` flag of the `fork-ts-checker-webpack-plugin` will (by default
in development mode) avoid reporting any errors detected by `tsc` back
to webpack:

https://github.com/TypeStrong/fork-ts-checker-webpack-plugin#options

> If `true` reports issues **after** webpack's compilation is done.
> Thanks to that it doesn't block the compilation.

The problem in this case is that any compilation error will be then
undetectable by the `WatchStatePlugin` which will happily tell the
NativeScript CLI to continue with the build process.

* fix(cli): Do not send the `compilation` message to the CLI on errors.

When the compilation fails, this patch will prevent for the `compilation`
message to be sent back to the CLI, preventing broken builds hitting the device.
2021-08-03 14:36:02 +02:00
2d47cf327b fix: don't exclude node_modules from worker processing 2021-07-01 13:45:57 +02:00
e26e202af7 fix(webpack): avoid module reevaluation 2021-06-01 11:29:28 -03:00
20a8beaeb1 feat: add xml support to all flavors 2021-05-08 17:04:12 -03:00
f861be06b3 refactor: use helper to resolve report path 2021-04-14 15:23:10 +02:00
0601ca763b fix: watchIgnore should be a full path 2021-04-14 15:14:55 +02:00
f053403d8d fix: don't externalize node built-ins 2021-04-14 14:58:44 +02:00
0f5b127c1a chore: remove unused import 2021-04-12 12:52:41 +02:00
cfd98d3674 feat: sourceMap improvements 2021-04-12 12:51:41 +02:00
482b7b11f6 fix: use acorn and drop babel-loader by default (#9320) 2021-04-12 11:38:06 +02:00
279b0b1d20 fix: terser options 2021-04-06 15:44:51 +02:00
13b3364e62 fix: exclude App_Resources from context
fixes #9299
2021-04-05 15:27:12 +02:00
d8067a553f fix: resolving loaders from non-hoisted deps 2021-04-02 14:53:04 +02:00
fb2c291063 feat: look for loaders in project node_modules first 2021-04-01 17:55:11 +02:00
1025270fad fix: node_module resolution when using relative packages 2021-04-01 17:00:19 +02:00
a7771cc8ab fix: read __CSS_PARSER__ from config (#9290)
* fix: read __CSS_PARSER__ from config

* fix: missing import and default value

* imports order
2021-03-31 21:27:29 +02:00
f7530fe4e1 fix: app-css-loader to look for platform specific app s?css files too 2021-03-30 14:34:30 +02:00
0999d6fe3e feat: app-css-loader & suppress env warning in ng projects 2021-03-29 22:17:29 +02:00
7d5f4a48ac feat: drop webpack-filter-warnings-plugin in favor of built-in ignoreWarnings 2021-03-29 13:59:33 +02:00
c55782bfaf chore: clean up unused code 2021-03-29 01:20:43 +02:00
7594d00ed9 feat: env based replacements (#9286)
* feat: file replacement handling for TS and pure file copy replacements

* test: add tests for replacements & refactor a bit

Co-authored-by: Igor Randjelovic <rigor789@gmail.com>
2021-03-29 01:13:51 +02:00
6dc0c7e285 chore: clean up HMR runtime 2021-03-28 19:39:22 +02:00
b2a636e307 chore: clean up old WatchStateLoggerPlugin 2021-03-26 23:20:27 +01:00
8855ca4373 chore: HMRRuntime injection (wip) 2021-03-24 17:27:35 +01:00
6cc0ce3d57 feat: core-hmr handling & watch ignore 2021-03-11 23:05:47 +01:00
0e8336f1d9 chore: cleanup imports 2021-03-11 16:28:11 +01:00
0353d68781 chore: bump deps & drop clean-webpack-plugin in favor of clean:true 2021-03-09 18:45:28 +01:00
d2abd58174 feat: add worker support 2021-03-07 19:33:52 +01:00
aa0daba6a5 feat: ips helper, ts config, cleanups 2021-03-05 15:34:16 +01:00
73e97116d5 fix: handle appComponents (closes #9126) 2021-03-02 20:11:47 +01:00
3c44a553c3 feat: add DotEnv support 2021-03-02 18:49:15 +01:00
50594fb5f4 chore: update snapshots & regex for filterWarnings 2021-03-02 15:26:04 +01:00
99eca67a90 feat(webpack): filter common undesirable warnings by default (#9253)
* feat(webpack): filter common undesirable warnings by default

* style: move import line

Co-authored-by: Igor Randjelovic <rigor789@gmail.com>
2021-03-02 15:18:37 +01:00
c3efab3abc refactor: simplify copy handling 2021-01-02 16:27:00 +01:00
68f3e728a6 chore: tweaks & fixes (#9109)
* fix: correct bundle analyzer settings

* fix: svelte config fix

* fix: CopyWebpackPlugin fixed ignore

* chore: tabs fix
2020-12-23 20:04:22 +01:00
d21776079f chore: cleanup 2020-12-07 15:01:17 +01:00
2f39cf5ed6 feat: extract platforms 2020-12-07 13:41:22 +01:00
7df2f09cfc feat: add postcss-loader by default 2020-12-03 10:45:30 +01:00