170 Commits

Author SHA1 Message Date
1be078f2d3 chore(release): webpack-5.0.0-rc.8 2021-09-07 19:58:34 +02:00
ea0b3b0acd fix: include bundle-entry-points by default 2021-09-07 19:58:12 +02:00
ff989851d6 chore(release): webpack-5.0.0-rc.7 2021-09-07 19:36:27 +02:00
1bd49926e5 chore(release): webpack 5.0.0-rc.6 2021-08-29 18:29:18 +02:00
ff4359abad feat(webpack): try resolving compiler, but don't fail if not found 2021-08-29 18:28:14 +02:00
4dca636dc5 chore(release): webpack rc.5 2021-08-29 18:09:35 +02:00
5024295994 refactor(webpack): drop custom flavor helper & explicitly set in each config 2021-08-29 18:08:05 +02:00
121ea164e4 chore(webpack): rc.4 2021-08-19 20:55:25 -07:00
5890667b26 feat(android): support clipToBounds (#9508)
* performance improvements around border handling

BREAKING CHANGE:

* if you have broder-radius or clip-path, it will clip by default
2021-08-11 12:06:36 -07:00
f2b4207965 refactor: clean up custom flavor detection 2021-08-10 22:31:08 +02:00
dce7408c05 feat(core): make css parsers tree-shakable (#9496) 2021-08-10 13:21:34 -07:00
db8b847306 chore(release): @nativescript/webpack@5.0.0-rc.1 2021-08-09 20:58:23 +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
3bf55b7a04 feat: handle config name
related to https://github.com/NativeScript/nativescript-cli/pull/5554
2021-08-09 15:56:32 +02:00
5309f2d0a7 fix(webpack): use async type-checking in watch mode 2021-08-03 15:41:49 +02:00
5a3a35d376 fix(webpack): add virtualEntry before main entry
fixes running with the JSC runtime, fixes #9469
2021-08-03 15:41:14 +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
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
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
fcab66ae02 fix(webpack5): allow platform specific template files (#9459) 2021-07-01 13:39:48 +02:00
f8f11954c1 chore: adjust dep version 2021-06-08 20:55:37 +02:00
a18c10c1a8 refactor: rename loader 2021-06-08 20:43:39 +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
c265c3ac3f fix(webpack5): add AngularWebpackPlugin transformers (#9435) 2021-06-03 17:00:26 -07:00
0be54a631a chore: beta.12 2021-06-03 13:36:32 -07:00
69a41eea38 test: update tests and snapshots 2021-06-02 19:07:11 +02:00
e252e97648 refactor: angular polyfill loading 2021-06-02 19:06:51 +02:00
ea2f41a0f5 chore: use higher webpack range 2021-06-02 11:51:25 +02:00
91131eb6eb Merge branch 'feat/webpack5' into pr/9384 2021-06-02 11:50:59 +02:00
3cbcac9d49 chore: bump deps 2021-06-02 11:49:23 +02:00
af1aaca862 chore: beta.12 2021-06-01 09:15:56 -07:00
e26e202af7 fix(webpack): avoid module reevaluation 2021-06-01 11:29:28 -03:00
8df5cd6e2e chore: beta.11 2021-05-28 15:07:52 -07:00
7322ead729 feat(webpack5): support for angular polyfills.ts 2021-05-28 19:03:01 -03:00
b8e6bfb7c0 chore: beta.10 2021-05-11 13:36:26 -07:00
87c83fe0e6 feat: angular 12 support 2021-05-08 17:50:23 -03:00
20bec3f7d4 feat: Angular 11 virtual modules compatibility 2021-05-08 17:49:59 -03:00
20a8beaeb1 feat: add xml support to all flavors 2021-05-08 17:04:12 -03: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
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
4f8522f5d4 refactor: simplify App_Resource exclusions 2021-04-14 15:09:33 +02:00
582f161dd9 Merge branch 'feat/webpack5' of https://github.com/NativeScript/NativeScript into feat/webpack5 2021-04-14 14:58:50 +02:00
f053403d8d fix: don't externalize node built-ins 2021-04-14 14:58:44 +02:00
eec2319ac6 fix: prevent App_Resources from being copied (#9325)
to assets
2021-04-12 14:25:56 +02:00
0f5b127c1a chore: remove unused import 2021-04-12 12:52:41 +02:00