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.
At issue #1511 you have mentioned the vite is not using native-loader and would be great to use once it is stable.
I was using type: module since Vite 2.0.0.beta.1 even in Vite 1.x.x.beta and everything was working fine.
The issues came in at Vite 2.0.0.beta.22 so I'm stuck to Vite 2.0.0.beta.21.
Seems the current loader has an issue to parse even a RegExp. (I also know the transform fix for Import.meta is not proper)
For example try to parse this regex in vite.config.ts when you have type as module.
consttest=/([\w_]+)\sas\s([\w_]+),?/g
You will get:
SyntaxError: Invalid regular expression: missing /
at Loader.moduleStrategy (internal/modules/esm/translators.js:145:18)
at processTicksAndRejections (internal/process/task_queues.js:93:5)
at async link (internal/modules/esm/module_job.js:47:21)
And that is because of the question mark at the end. (the regex is fully valid and is working in beta.21)
Vite version: vite/2.0.0-beta.29 linux-x64 node-v14.15.4
System: WSL
Describe the solution you'd like
As you mentioned in the issue #1511 I would like to have ability to use native-loaders which will resolve the two issues above (even when the one is temporary fixed) and next upcoming esm issues.
The text was updated successfully, but these errors were encountered:
Is your feature request related to a problem? Please describe.
At issue #1511 you have mentioned the vite is not using native-loader and would be great to use once it is stable.
I was using
type: module
since Vite 2.0.0.beta.1 even in Vite 1.x.x.beta and everything was working fine.The issues came in at Vite 2.0.0.beta.22 so I'm stuck to Vite 2.0.0.beta.21.
Seems the current loader has an issue to parse even a RegExp. (I also know the transform fix for Import.meta is not proper)
For example try to parse this regex in vite.config.ts when you have type as module.
You will get:
And that is because of the question mark at the end. (the regex is fully valid and is working in beta.21)
Vite version: vite/2.0.0-beta.29 linux-x64 node-v14.15.4
System: WSL
Describe the solution you'd like
As you mentioned in the issue #1511 I would like to have ability to use native-loaders which will resolve the two issues above (even when the one is temporary fixed) and next upcoming esm issues.
The text was updated successfully, but these errors were encountered: