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
61ff7e4762
feat(webpack): read nativescript.config.ts main if set before fallback to package.json ( #9769 )
...
implements #9658
BREAKING CHANGES:
Possibly breaking if a project has a main field set in the nativescript.config.ts - since after this lands, this value will be used instead of package.json main.
The impact is likely very small, the steps to migrate:
(Option A) remove main from nativescript.config.ts if set
(Option B) update main to the correct path in nativescript.config.ts if set incorrectly
2022-02-18 13:39:04 +01:00
cb7bd2a401
fix(webpack): exclude other platforms from require.context ( #9686 )
...
fixes #9682
2022-02-18 13:37:32 +01:00
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
a88cacab89
chore(migrate): apps/* to webpack5 ( #9606 )
2021-12-21 09:47:33 -08:00
5cf948688e
chore: update snapshots
2021-12-10 22:32:55 +01:00
e8955b4ed4
chore(release): @nativescript/webpack 5.0.2-alpha.0
2021-11-30 16:53:37 +01:00
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
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
57eac49128
chore(webpack5): update snapshots
2021-11-21 18:12:14 +01:00
c26779735f
test(webpack): update snapshots
2021-11-10 21:01:09 +01:00
99298331c8
fix(webpack): exclude files starting with _ from require.context ( #9596 )
2021-10-06 12:49:47 +02: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
9f807ef7e1
feat(webpack): use svelte-loader and fallback to svelte-loader-hot
...
Allows running older projects
2021-08-11 12:30:12 +02:00
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
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
5309f2d0a7
fix(webpack): use async type-checking in watch mode
2021-08-03 15:41:49 +02:00
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
0fd53e3abb
fix(webpack5): change .d.ts filter regex ( #9470 )
2021-07-13 15:58:04 +02:00
14edc70336
fix: vue scoped css
2021-07-01 13:50:25 +02:00
2d47cf327b
fix: don't exclude node_modules from worker processing
2021-07-01 13:45:57 +02:00
93843b7b4e
feat(webpack): angular12 support & looser dependencies ( #9441 )
...
* chore: dep scoping
* chore: carrots for all dep major versions
* chore: dev.1
* chore: use at least min of 5.34 on webpack
* chore: ignore angular warnings
* feat: add hmr support for angular 12
* feat: custom hmr dispose logic for angular 12
* chore: dev.3
* chore: ignore warnings
* chore: dev.4
* chore: ignore ivy compiled warnings
* chore: dev.5
Co-authored-by: Eduardo Speroni <edusperoni@gmail.com>
2021-06-08 20:35:21 +02:00
dea18978d5
fix: hmr with runtimeChunk single
2021-06-04 20:29:24 +02:00
69a41eea38
test: update tests and snapshots
2021-06-02 19:07:11 +02:00
a9eed7e4c6
fix(webpack|angular): platform suffixed files printing error when changed
2021-04-15 22:46:34 +02:00
759f05a53a
fix(webpack|angular): styleUrls with platform suffixes
2021-04-15 20:51:02 +02:00
0601ca763b
fix: watchIgnore should be a full path
2021-04-14 15:14:55 +02:00
4f8522f5d4
refactor: simplify App_Resource exclusions
2021-04-14 15:09:33 +02:00
f053403d8d
fix: don't externalize node built-ins
2021-04-14 14:58:44 +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
6afd5a65c3
fix(angular): styleURLs
2021-04-06 15:44:38 +02:00
ca04224906
chore: update snapshots
2021-04-05 15:28:18 +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
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
687bc641a5
fix: fileReplacements should be relative to app root
2021-03-29 13:59:09 +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
0b32d5a88d
fix: hmr runtime for core/ts
2021-03-28 23:04:15 +02:00
78ad71db6c
test: update snapshots
2021-03-28 19:48:44 +02: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