Environment
Node v20.18.0, mlly@1.7.1
Reproduction
mlly.hasESMSyntax(`/* export * */`, { stripComments: false }) // true ✅
mlly.hasESMSyntax(`/* export * */`, { stripComments: true }) // false ✅
mlly.hasESMSyntax(`/*
export *
*/`, { stripComments: true }) // true ❌
Describe the bug
The strip comments functionality does not handle multiline comments resulting in incorrect results for hasESMSyntax and isValidNodeImport.
Additional context
No response
Logs
No response
Environment
Node v20.18.0, mlly@1.7.1
Reproduction
Describe the bug
The strip comments functionality does not handle multiline comments resulting in incorrect results for
hasESMSyntaxandisValidNodeImport.Additional context
No response
Logs
No response