Igor Randjelovic
cb7bd2a401
fix(webpack): exclude other platforms from require.context ( #9686 )
...
fixes #9682
2022-02-18 13:37:32 +01:00
Igor Randjelovic
d8d624a154
chore(release): @nativescript/webpack 5.0.4
2021-12-23 22:49:18 +01:00
Igor Randjelovic
965ccb4aec
fix(webpack): typescript imports in non-ts projects ( #9714 )
2021-12-23 22:48:00 +01:00
Igor Randjelovic
6ca3d353ea
chore(release): @nativescript/webpack 5.0.3
2021-12-22 21:01:30 +01:00
Eduardo Speroni
0df5aa9712
feat(webpack): disable aot flag, optional angular dep and tsconfig utils ( #9711 )
...
Co-authored-by: Igor Randjelovic <rigor789@gmail.com >
2021-12-22 20:54:17 +01:00
Nathan Walker
9c6c84b107
chore: nx migrate latest ( #9709 )
2021-12-21 18:24:24 -08:00
Igor Randjelovic
a88cacab89
chore(migrate): apps/* to webpack5 ( #9606 )
2021-12-21 09:47:33 -08:00
Igor Randjelovic
80d92dbc5b
chore(release): @nativescript/webpack 5.0.2-alpha.1
2021-12-10 22:43:52 +01:00
Igor Randjelovic
5cf948688e
chore: update snapshots
2021-12-10 22:32:55 +01:00
Eduardo Speroni
fae6582a61
fix(webpack): prepend NativeClass transformer in angular config ( #9698 )
...
This fixes angular JIT compilation
2021-12-10 22:31:05 +01:00
Igor Randjelovic
e8955b4ed4
chore(release): @nativescript/webpack 5.0.2-alpha.0
2021-11-30 16:53:37 +01:00
Eduardo Speroni
c68f40f871
feat(webpack): support NG 13 and zone async/await ( #9676 )
...
* feat(webpack): support NG 13 and zone async/await
* chore: cleanup
* chore: remove require.resolve and update snapshots
Co-authored-by: Igor Randjelovic <rigor789@gmail.com >
2021-11-30 16:51:34 +01:00
Eduardo Speroni
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
Igor Randjelovic
57eac49128
chore(webpack5): update snapshots
2021-11-21 18:12:14 +01:00
William Sedlacek
bbd2aa9540
chore(webpack5): update react-refresh ( #9675 )
2021-11-21 17:51:12 +01:00
Igor Randjelovic
1b0414c6ae
chore(release): @nativescript/webpack 5.0.1
2021-11-10 21:02:34 +01:00
Igor Randjelovic
c26779735f
test(webpack): update snapshots
2021-11-10 21:01:09 +01:00
halfnelson
78e9c17be3
fix(webpack): map 'svelte' to 'svelte/internal' to avoid forced ssr ( #9627 )
2021-10-29 12:32:56 +02:00
Igor Randjelovic
99298331c8
fix(webpack): exclude files starting with _ from require.context ( #9596 )
2021-10-06 12:49:47 +02:00
Ian MacDonald
1ceea571e4
fix(webpack): using multiple workers in a single file
2021-09-29 19:22:21 +02:00
Igor Randjelovic
e91aa70a0b
chore(release): webpack 5.0.0
2021-09-08 16:12:11 -07:00
Igor Randjelovic
10e4e30cbd
build(deps): bump webpack5 deps
2021-09-08 16:12:11 -07:00
Igor Randjelovic
f00f82caa4
feat(webpack): -v and --version flags
2021-09-08 16:12:11 -07:00
Igor Randjelovic
4c393cd837
feat(webpack): export merge helper
2021-09-08 16:12:11 -07:00
Igor Randjelovic
e3eb1eb94a
chore(release): webpack-5.0.0-rc.8
2021-09-08 16:12:11 -07:00
Igor Randjelovic
5ff85bfae9
fix: include bundle-entry-points by default
2021-09-08 16:12:11 -07:00
Igor Randjelovic
8bc4878a81
chore(release): webpack-5.0.0-rc.7
2021-09-08 16:12:11 -07:00
Igor Randjelovic
21639e39fd
chore(release): webpack 5.0.0-rc.6
2021-09-08 16:07:39 -07:00
Igor Randjelovic
97dda95024
feat(webpack): try resolving compiler, but don't fail if not found
2021-09-08 16:07:39 -07:00
Igor Randjelovic
9ce48f42fd
chore(release): webpack rc.5
2021-09-08 16:07:39 -07:00
Igor Randjelovic
3bdc34aec3
refactor(webpack): drop custom flavor helper & explicitly set in each config
2021-09-08 16:07:39 -07:00
Nathan Walker
5084ef8795
chore(webpack): rc.4
2021-09-08 16:07:39 -07:00
rigor789
1e3bc48737
refactor: clean up custom flavor detection
2021-09-08 16:07:39 -07:00
farfromrefuge
dd5f24a737
feat(core): make css parsers tree-shakable ( #9496 )
2021-09-08 16:07:38 -07:00
Igor Randjelovic
3a3b505167
chore(release): @nativescript/webpack@5.0.0-rc.3
2021-08-11 12:30:33 +02:00
Igor Randjelovic
9f807ef7e1
feat(webpack): use svelte-loader and fallback to svelte-loader-hot
...
Allows running older projects
2021-08-11 12:30:12 +02:00
farfromrefuge
59d9271bce
feat(webpack): improved svelte HMR ( #9497 )
...
* update svelte config to use svelte-loader
* handle null config
* fix: worker support in .svelte files & update snapshots
* fix after merge
Co-authored-by: halfnelson <dpershouse@gmail.com >
Co-authored-by: Igor Randjelovic <rigor789@gmail.com >
2021-08-11 11:42:53 +02:00
Igor Randjelovic
db8b847306
chore(release): @nativescript/webpack@5.0.0-rc.1
2021-08-09 20:58:23 +02:00
Eduardo Speroni
093b369b74
fix(webpack5): angular scss rule not ignoring regular scss ( #9502 )
...
* fix(webpack5): angular scss rule not ignoring regular scss
* test: angular scss snapshot update
2021-08-09 19:42:45 +02:00
rigor789
3bf55b7a04
feat: handle config name
...
related to https://github.com/NativeScript/nativescript-cli/pull/5554
2021-08-09 15:56:32 +02:00
rigor789
5309f2d0a7
fix(webpack): use async type-checking in watch mode
2021-08-03 15:41:49 +02:00
rigor789
5a3a35d376
fix(webpack): add virtualEntry before main entry
...
fixes running with the JSC runtime, fixes #9469
2021-08-03 15:41:14 +02:00
Igor Randjelovic
cb91cd8a3f
fix(webpack): angular component css handling ( #9434 )
...
* feat: use raw-loader for all css but app.s?css
* feat: use angular css rules for entire app dir
Co-authored-by: Eduardo Speroni <edusperoni@gmail.com >
2021-08-03 14:37:58 +02:00
Pier Fumagalli
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
Adam Bird
0fd53e3abb
fix(webpack5): change .d.ts filter regex ( #9470 )
2021-07-13 15:58:04 +02:00
Igor Randjelovic
14edc70336
fix: vue scoped css
2021-07-01 13:50:25 +02:00
Igor Randjelovic
2d47cf327b
fix: don't exclude node_modules from worker processing
2021-07-01 13:45:57 +02:00
Eduardo Speroni
fcab66ae02
fix(webpack5): allow platform specific template files ( #9459 )
2021-07-01 13:39:48 +02:00
Igor Randjelovic
f8f11954c1
chore: adjust dep version
2021-06-08 20:55:37 +02:00
Igor Randjelovic
a18c10c1a8
refactor: rename loader
2021-06-08 20:43:39 +02:00