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
varmlly=require("mlly")constimports=mlly.findStaticImports(`// Examples of strings (backticks and single quote) const a = \`// Empty comment\n import Nodes from "\\$\\{v\\}";\`const b = '// Empty comment\n import myString from "module-string";'// Code from "highlight.js" qml languagevar main = { keyword: ' import', dn: '',};`);console.log(imports);
Environment
Node.js v21.6.1
"mlly": "^1.5.0"
Reproduction
returns:
Link: https://runkit.com/embed/fclpb908pqho
Describe the bug
The ESM_STATIC_IMPORT_RE probably doesn't account for that edge case.
Additional context
No response
Logs
No response
The text was updated successfully, but these errors were encountered: