137 Commits

Author SHA1 Message Date
e04e9b6909 Revert "Change target to ES5 for targeting Hermes Engine, disable noEmitHelpers, don't crash if registerOnGlobalContext fails, and disable the special transform for NativeClass decorator"
This reverts commit 7e0497c8b15c96e440a9809642e0f3d441e4e871.
2023-12-02 11:38:29 +09:00
7e0497c8b1 Change target to ES5 for targeting Hermes Engine, disable noEmitHelpers, don't crash if registerOnGlobalContext fails, and disable the special transform for NativeClass decorator 2023-11-18 12:13:47 +05:30
e1e8a10e63 style: fix format 2023-10-09 22:26:23 +02:00
0b5393d7bf fix(webpack): handle single appComponents env flag (#10401) 2023-10-09 22:24:57 +02:00
0a2b2202f3 fix(testing): e2e flag no longer needed, testID is now applicable in dev or prod builds (#10396)
- you can now test on development or production with testID set
- for android, this changes testID to use resource id instead of content description
- you no longer need to pass `--env.e2e`. e2e is simply usable if testID is set
- the `testID` property will also set `accessibilityIdentifier` and `accessibilityIdentifier` property will set `testID` only if there is a `testID` already set
2023-10-04 08:49:26 -07:00
bbede5d795 feat(visionos): Vision Pro support (#10392) 2023-09-28 17:55:40 -07:00
2cb26c2231 fix(webpack): set keep_quoted_props: true in TerserOptions (#10382) 2023-09-14 16:40:11 +02:00
3325b3ec0b feat(webpack): place hidden sourceMaps in platforms folder (#10352) 2023-08-03 22:40:42 +02:00
dd10bfccc2 feat(webpack): angular 16.1 support (#10317) 2023-06-21 16:24:41 +02:00
9627a80f27 fix(webpack): angular 16 build with terser (#10302) 2023-06-06 16:54:25 +02:00
ebb827fb8e feat(webpack): support tsconfig.app.json when present (#10221) 2023-03-28 16:17:51 +02:00
f100109e2d fix(webpack): support angular 15.x (#10106) 2022-11-30 14:51:05 +01:00
0556cf9b20 refactor(webpack): use real modules and deprecate virtual modules 2022-07-13 15:25:51 -07:00
c9f77a0a22 fix(webpack): NativeClass decorator should run after angular transformers in AOT mode (#9908) 2022-07-09 10:09:43 -07: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
965ccb4aec fix(webpack): typescript imports in non-ts projects (#9714) 2021-12-23 22:48:00 +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
fae6582a61 fix(webpack): prepend NativeClass transformer in angular config (#9698)
This fixes angular JIT compilation
2021-12-10 22:31:05 +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
78e9c17be3 fix(webpack): map 'svelte' to 'svelte/internal' to avoid forced ssr (#9627) 2021-10-29 12:32:56 +02: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
97dda95024 feat(webpack): try resolving compiler, but don't fail if not found 2021-09-08 16:07:39 -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
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
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
e252e97648 refactor: angular polyfill loading 2021-06-02 19:06:51 +02:00
e26e202af7 fix(webpack): avoid module reevaluation 2021-06-01 11:29:28 -03:00
7322ead729 feat(webpack5): support for angular polyfills.ts 2021-05-28 19:03:01 -03:00
87c83fe0e6 feat: angular 12 support 2021-05-08 17:50:23 -03:00