Open brion-fuller opened 4 years ago
I have a solution for this but it was writing using @babel/parser. So I wasn't sure your feelings on moving from espree to @babel/parser.
Espree does support dynamic imports it seems, it just requries ecmaVersion
above 11
or 2020
.
Have you tried that?
Regarding switching the parser engine, pretty much the main motivation behind this preprocessor was avoiding using bulky libraries like babel to have a minimal impact on host project node_modules
.
I see however you now have switched parsing backend to es-module-lexer
which looks interesting and in fact seems to be even more in line with the above goal than espree
.
If i have a file like
Browsers support dynamic imports/named imports and exports. In the example all the imports currently are skipped for rendering.