clear-modules is not compatible with our bundle file
byCedric opened this issue · 1 comments
byCedric commented
Description of the bug
Right now, we have clear-modules
used in the code providers to get a preview of the to-be-used AndroidManifest.xml
and other native files. Unfortunately, this is not working in production mode atm.
-
When compiled to a single file, it still maintains the typescript paths.
Probably because of webpack adding them, when looking for these files we get unexpected errors. -
clear-modules
is removing all modules from the require cache.
This heavily impacts performance in VSCode overall, it also removes the internal APIs from the cache. When running in safemode (with extensions disabled) it removes1073
modules from the cache.
To Reproduce
- Run the project in production mode.
- After everything is loaded, turn on both caught and uncaught exceptions
- Try to preview the
AndroidManifest.xml
.