We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 36206b4 commit 1e2b3fcCopy full SHA for 1e2b3fc
fix-imports.js
@@ -21,7 +21,7 @@ async function processFiles(directory) {
21
.split('\n')
22
.map((line) => {
23
if (line.trim().startsWith('import')) {
24
- return line.replace(/\.js"/g, '.mjs"');
+ return line.replace(/\.js"/g, '.mjs"').replace(/\.js'/g, ".mjs'");
25
}
26
return line;
27
})
0 commit comments