Warning" Switching to esbuild ruins your project!
It happens when you press the button “Switch to esbuild” under Recommendations.
The following table lists all the browser builder options that will need to be adjusted or removed.
Angular esbuild
When I changed
"serviceWorker": true,
"ngswConfigPath": "ngsw-config.json",
to
"serviceWorker": "ngsw-config.json",
Ionic build could run again. But when you want to start the project again by “ionic serve” you get to see
[ng] 13:08:51 [vite] warning:
[ng] E:/ionic-workspace/op24/.angular/cache/17.0.6/vite/deps/chunk-MWVXNVJO.js
[ng] 2585| return i[n];
[ng] 2586| }
[ng] 2587| return import("./".concat(a, ".entry.js").concat("")).then(function(e2) {
[ng] | ^
[ng] 2588| {
[ng] 2589| cmpModules.set(a, e2);
[ng] The above dynamic import cannot be analyzed by Vite.
[ng] See https://github.com/rollup/plugins/tree/master/packages/dynamic-import-vars#limitations for supported dynamic import formats. If this is intended to be left as-is, you can use the /* @vite-ignore */ comment inside the import() call to suppress this warning.
[ng]
[ng] Plugin: vite:import-analysis
and in the browser you see:
How can I undo everything? Can I switch to the old build system?
