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 e16aa4d commit d7f78e8Copy full SHA for d7f78e8
scripts/buildEsm.js
@@ -2,7 +2,7 @@ const fs = require('fs');
2
const glob = require('glob');
3
4
let pkg = process.argv[process.argv.length - 1];
5
-let regex = /(.*)\.module\.js/g;
+let regex = /(.*)\.module\.js(?!.map)/g;
6
if (fs.existsSync(`${pkg}/dist/module.js`)) {
7
let js = fs.readFileSync(`${pkg}/dist/module.js`, 'utf8');
8
js = js.replace(regex, '$1.mjs');
0 commit comments