Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

clear-modules is not compatible with our bundle file #47

Closed
byCedric opened this issue Jun 8, 2021 · 1 comment
Closed

clear-modules is not compatible with our bundle file #47

byCedric opened this issue Jun 8, 2021 · 1 comment
Labels
bug Something isn't working

Comments

@byCedric
Copy link
Member

byCedric commented Jun 8, 2021

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.

  1. 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.

  2. 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 removes 1073 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.
@byCedric byCedric added the bug Something isn't working label Jun 8, 2021
@byCedric
Copy link
Member Author

byCedric commented Jun 9, 2021

Fixed by #48

@byCedric byCedric closed this as completed Jun 9, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant