100 Commits

Author SHA1 Message Date
e06ca24c9d feat: css-tree 3.1+ support which includes es module support 2025-08-13 17:28:58 -07:00
c934d898b4 feat: source map remapping for runtime stack trace displays 2025-08-02 17:46:33 -07:00
3b151177f4 feat(webpack): auto enable commonjs on core < 9 + consider prereleases 2025-07-29 18:08:18 -07:00
03dae26d92 feat(webpack): auto enable commonjs when a project is on core < 9 2025-07-25 10:58:09 -07:00
0ba0ab0d59 chore: working with builder xml require vs dynamic import wip 2025-07-22 14:37:11 -07:00
248a85f6e0 chore: cleanup 2025-07-19 01:18:12 -07:00
49413e5873 chore: base webpack with ability to switch between esm to commonjs as needed 2025-07-14 08:46:57 -07:00
cebc78406b feat(webpack): enable esm modules as default 2025-07-09 22:40:48 -07:00
7b4cb8419c feat: allow the passing of a bundle suffix (#10614) 2024-08-29 09:53:31 -07:00
4abcb216da feat(android): background color/image handling improvements (#10451) 2024-06-28 15:07:10 -07:00
ccee8e8166 fix: detect core version before including inspector_modules on android (#10520) 2024-04-16 14:20:14 +02:00
5324e508ba feat(android): devtools for elements & network requests (#10506) 2024-04-07 10:27:42 -07:00
01d537bf15 feat(visionos): ui-mobile-base supporting xros plus improvements to window handling (#10478) 2024-04-05 17:07:16 -07:00
429328495c feat(wepback): custom buildPathsupport (#10477)
Co-authored-by: farfromrefuge <dev@akylas.fr>
2024-01-19 20:23:25 +01:00
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
ebb827fb8e feat(webpack): support tsconfig.app.json when present (#10221) 2023-03-28 16:17:51 +02: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
a88cacab89 chore(migrate): apps/* to webpack5 (#9606) 2021-12-21 09:47:33 -08: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
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
5309f2d0a7 fix(webpack): use async type-checking in watch mode 2021-08-03 15:41:49 +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
2d47cf327b fix: don't exclude node_modules from worker processing 2021-07-01 13:45:57 +02:00
e26e202af7 fix(webpack): avoid module reevaluation 2021-06-01 11:29:28 -03:00
20a8beaeb1 feat: add xml support to all flavors 2021-05-08 17:04:12 -03: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
f053403d8d fix: don't externalize node built-ins 2021-04-14 14:58:44 +02:00
0f5b127c1a chore: remove unused import 2021-04-12 12:52:41 +02:00
cfd98d3674 feat: sourceMap improvements 2021-04-12 12:51:41 +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
13b3364e62 fix: exclude App_Resources from context
fixes #9299
2021-04-05 15:27:12 +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
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
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