In v1.1.1, es-module-lexer errors when parsing these valid JS code:
export default "export default a"
export default "export default 'a'"
export default "export function foo() {}"
export default "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: https://github.com/vitejs/vite/pull/12036