Replies: 2 comments
-
@cawa-93 I have the same issue when using an import map with Vite dev server (building works fine). Did you found a workaround to avoid the exception?
|
Beta Was this translation helpful? Give feedback.
0 replies
-
@maicol07 @cawa-93 vite will resolve any bare module. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Some packages should not, or cannot be bundled, and should remain in production as external packages. In this case, there may be a problem with the bare module:
It would be fabulous to have a plugin that would automatically inject map imports for all external packages:
Is it technically possible at all?
One of the use cases:
Electron application. You can use packages, that require the nodejs context, but in the browser runtime.
Or, you don't bindle an dependencies at all. Since this is an electron application, all dependencies are delivered locally and there is no need to optimize them.
Beta Was this translation helpful? Give feedback.
All reactions