Commit Graph

24 Commits

Author SHA1 Message Date
Nathan Walker
1e54baf198 feat(webpack): support es module bundling (#10788) 2025-09-18 13:03:17 -07:00
Nathan Walker
bbede5d795 feat(visionos): Vision Pro support (#10392) 2023-09-28 17:55:40 -07:00
Igor Randjelovic
6059984555 fix(webpack): notify CLI even if there are compilation errors (#10141) 2023-03-28 15:35:46 +02:00
Manuel Roat
6e792fe07d fix(webpack): fix regex for PlatformSuffixPlugin (#10169) 2023-01-20 13:09:45 +01:00
Igor Randjelovic
e80ec07873 feat(webpack): add --env.stats to disable printing stats
primarily used internally by preview-cli
2022-07-13 15:25:51 -07:00
Igor Randjelovic
a6d19e9716 wip: watchstate plugin adjustments 2022-07-13 15:23:56 -07: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
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
c922e77129 style: run prettier on webpack5 files 2021-03-29 01:24:23 +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
75e6009b8a chore: implement basic devServer 2021-03-26 22:16:36 +01:00
Igor Randjelovic
aa0daba6a5 feat: ips helper, ts config, cleanups 2021-03-05 15:34:16 +01:00
Igor Randjelovic
de5f67f7c8 chore: add JSDocs 2020-12-08 12:07:42 +01:00
Igor Randjelovic
5dad44a8e3 chore: cleanup 2020-12-01 19:51:07 +01:00
Igor Randjelovic
016ecd19a8 chore: organize test files 2020-12-01 19:25:29 +01:00
Igor Randjelovic
65b214b845 feat: platform suffix resolution [wip] 2020-11-30 19:02:30 +01:00
Igor Randjelovic
e544b4506f feat: add micro cli for initializing the config 2020-11-23 16:27:33 +01:00
Igor Randjelovic
f09d746cc5 fix: sass handling 2020-11-23 13:55:44 +01:00
Igor Randjelovic
f937940902 wip: better IPC messaging with the CLI 2020-11-22 23:57:37 +01:00
Igor Randjelovic
f6636367ee fix: emittedFiles 2020-11-22 17:57:39 +01:00
Igor Randjelovic
46853d2c83 feat: external config loading
+refactor many pieces
2020-11-21 13:34:09 +01:00
Igor Randjelovic
72a87c5d2c chore: more base configuration 2020-11-19 21:45:16 +01:00
Igor Randjelovic
bea55474df chore: more base configuration 2020-11-17 14:49:36 +01:00