You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is your feature request related to a problem? Please describe.
I'm migrating an app from Webpack 4 to ViteJS, but I'm blocked with the need to provide shims as described in the documentation for Webpack 5 :
ViteJs uses Rollup under the hood (which make it possible to provide shims like in Webpack, although I'm not sure of the exact configuration needed there) but doesn't bundle in development mode, so it's not possible to have these shims in development.
Describe the solution you'd like
Make this package compatible with native ES Module, so that it doesn't require to configure a bundle/code transformation to use it.
I'm not an expert on the issue, but maybe it would be possible to import stream from a lib in the code, instead of using it as a global?
Describe alternatives you've considered
Find a way to implement shims in Rollup and ESBuild, but that seems excessively complex.
The text was updated successfully, but these errors were encountered:
Is your feature request related to a problem? Please describe.
I'm migrating an app from Webpack 4 to ViteJS, but I'm blocked with the need to provide shims as described in the documentation for Webpack 5 :
ViteJs uses Rollup under the hood (which make it possible to provide shims like in Webpack, although I'm not sure of the exact configuration needed there) but doesn't bundle in development mode, so it's not possible to have these shims in development.
Describe the solution you'd like
Make this package compatible with native ES Module, so that it doesn't require to configure a bundle/code transformation to use it.
I'm not an expert on the issue, but maybe it would be possible to
import stream
from a lib in the code, instead of using it as a global?Describe alternatives you've considered
Find a way to implement shims in Rollup and ESBuild, but that seems excessively complex.
The text was updated successfully, but these errors were encountered: