Commit Graph

154 Commits

Author SHA1 Message Date
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
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
a18c10c1a8 refactor: rename loader 2021-06-08 20:43:39 +02:00
Nathan Walker
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
Igor Randjelovic
dea18978d5 fix: hmr with runtimeChunk single 2021-06-04 20:29:24 +02:00
Eduardo Speroni
c265c3ac3f fix(webpack5): add AngularWebpackPlugin transformers (#9435) 2021-06-03 17:00:26 -07:00
Igor Randjelovic
e252e97648 refactor: angular polyfill loading 2021-06-02 19:06:51 +02:00
Eduardo Speroni
e26e202af7 fix(webpack): avoid module reevaluation 2021-06-01 11:29:28 -03:00
Eduardo Speroni
7322ead729 feat(webpack5): support for angular polyfills.ts 2021-05-28 19:03:01 -03:00
Eduardo Speroni
87c83fe0e6 feat: angular 12 support 2021-05-08 17:50:23 -03:00
Eduardo Speroni
20a8beaeb1 feat: add xml support to all flavors 2021-05-08 17:04:12 -03:00
Igor Randjelovic
a9eed7e4c6 fix(webpack|angular): platform suffixed files printing error when changed 2021-04-15 22:46:34 +02:00
Igor Randjelovic
759f05a53a fix(webpack|angular): styleUrls with platform suffixes 2021-04-15 20:51:02 +02:00
Igor Randjelovic
f861be06b3 refactor: use helper to resolve report path 2021-04-14 15:23:10 +02:00
Igor Randjelovic
0601ca763b fix: watchIgnore should be a full path 2021-04-14 15:14:55 +02:00
Igor Randjelovic
f053403d8d fix: don't externalize node built-ins 2021-04-14 14:58:44 +02:00
Igor Randjelovic
0f5b127c1a chore: remove unused import 2021-04-12 12:52:41 +02:00
Igor Randjelovic
cfd98d3674 feat: sourceMap improvements 2021-04-12 12:51:41 +02:00
Nathanael Anderson
482b7b11f6 fix: use acorn and drop babel-loader by default (#9320) 2021-04-12 11:38:06 +02:00
Igor Randjelovic
279b0b1d20 fix: terser options 2021-04-06 15:44:51 +02:00
Igor Randjelovic
6afd5a65c3 fix(angular): styleURLs 2021-04-06 15:44:38 +02:00
Igor Randjelovic
458c4eba88 fix: context regext to match the dot, exclude .d.ts 2021-04-05 15:27:48 +02:00
Igor Randjelovic
13b3364e62 fix: exclude App_Resources from context
fixes #9299
2021-04-05 15:27:12 +02:00
Igor Randjelovic
d8067a553f fix: resolving loaders from non-hoisted deps 2021-04-02 14:53:04 +02:00
Igor Randjelovic
fb2c291063 feat: look for loaders in project node_modules first 2021-04-01 17:55:11 +02:00
Igor Randjelovic
1025270fad fix: node_module resolution when using relative packages 2021-04-01 17:00:19 +02:00
Martin Guillon
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
Igor Randjelovic
f7530fe4e1 fix: app-css-loader to look for platform specific app s?css files too 2021-03-30 14:34:30 +02:00
Igor Randjelovic
0999d6fe3e feat: app-css-loader & suppress env warning in ng projects 2021-03-29 22:17:29 +02:00
Igor Randjelovic
7d5f4a48ac feat: drop webpack-filter-warnings-plugin in favor of built-in ignoreWarnings 2021-03-29 13:59:33 +02:00
Igor Randjelovic
c922e77129 style: run prettier on webpack5 files 2021-03-29 01:24:23 +02:00
Igor Randjelovic
c55782bfaf chore: clean up unused code 2021-03-29 01:20:43 +02:00
Nathan Walker
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
Igor Randjelovic
0b32d5a88d fix: hmr runtime for core/ts 2021-03-28 23:04:15 +02:00
Igor Randjelovic
f8cc505a94 fix: look for tsconfig.app.json in ng projects 2021-03-28 19:39:41 +02:00
Igor Randjelovic
6dc0c7e285 chore: clean up HMR runtime 2021-03-28 19:39:22 +02:00
Igor Randjelovic
b2a636e307 chore: clean up old WatchStateLoggerPlugin 2021-03-26 23:20:27 +01:00
Igor Randjelovic
8855ca4373 chore: HMRRuntime injection (wip) 2021-03-24 17:27:35 +01:00
Igor Randjelovic
3a28f9eef6 fix: patch vue-loader for hmr 2021-03-12 16:08:28 +01:00
Igor Randjelovic
6cc0ce3d57 feat: core-hmr handling & watch ignore 2021-03-11 23:05:47 +01:00
Igor Randjelovic
0e8336f1d9 chore: cleanup imports 2021-03-11 16:28:11 +01:00
Igor Randjelovic
437c3b41f9 feat: support workspace configs 2021-03-11 16:19:05 +01:00
Igor Randjelovic
0353d68781 chore: bump deps & drop clean-webpack-plugin in favor of clean:true 2021-03-09 18:45:28 +01:00