-
Notifications
You must be signed in to change notification settings - Fork 77
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: resolve vite errors due to using expressions in dynamic imports (#…
…7671) **Related Issue:** #7575 ## Summary Vite uses [`@rollup/plugin-dynamic-import-vars`](https://github.com/rollup/plugins/tree/master/packages/dynamic-import-vars) for resolving dynamic imports that use an expression for the path, rather than a fixed string. The rollup plugin has a [limitation](https://github.com/rollup/plugins/tree/master/packages/dynamic-import-vars#imports-must-start-with--or-) that requires dynamic imports with expressions to use relative paths. > All imports must start relative to the importing file. The import should not start with a variable, an absolute path or a bare import Changing the module path to a fixed string in the patch script resolves the errors. It also ensures that only the components being used in the app are bundled.
- Loading branch information
Showing
2 changed files
with
27 additions
and
32 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters