Rename native shims to .mjs (#9079)
This commit is contained in:
1 parent
c8e7e0b003
commit
e8b299d164
8 files changed
+3
-3
No files matched your search
+1
-1
@@ -73,7 +73,7 @@ overrides:
|
||||
rules:
|
||||
no-console: off
|
||||
- files:
|
||||
- scripts/build/shims/*.js
|
||||
- "**/*.mjs"
|
||||
parserOptions:
|
||||
sourceType: module
|
||||
- files:
|
||||
|
||||
@@ -22,7 +22,7 @@ process.on("unhandledRejection", (err) => {
|
||||
process.exit(1);
|
||||
});
|
||||
|
||||
const CACHE_VERSION = "v28"; // This need update when updating build scripts
|
||||
const CACHE_VERSION = "v30"; // This need update when updating build scripts
|
||||
const CACHED = chalk.bgYellow.black(" CACHED ");
|
||||
const OK = chalk.bgGreen.black(" DONE ");
|
||||
const FAIL = chalk.bgRed.black(" FAIL ");
|
||||
|
||||
@@ -18,7 +18,7 @@ module.exports = function (dir) {
|
||||
return null;
|
||||
}
|
||||
|
||||
const shim = path.resolve(dir, importee + ".js");
|
||||
const shim = path.resolve(dir, importee + ".mjs");
|
||||
if (fs.existsSync(shim)) {
|
||||
return shim;
|
||||
}
|
||||
|
||||
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Reference in new issue
Block a user