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
In v1.1.1, es-module-lexer errors when parsing these valid JS code:
exportdefault"export default a"
exportdefault"export default 'a'"
exportdefault"export function foo() {}"
exportdefault"export function foo() {return bar}"
Here's a stackblitz repro, installing v1.1.0 instead fixes the issue. From the patterns, it looks like it's parsing the export specifier within the string.
In v1.1.1, es-module-lexer errors when parsing these valid JS code:
Here's a stackblitz repro, installing v1.1.0 instead fixes the issue. From the patterns, it looks like it's parsing the export specifier within the string.
Stumbled upon this in Vite: vitejs/vite#12036
The text was updated successfully, but these errors were encountered: