Build: migrate scripts/shims/* to ESM (#12371)

This commit is contained in:
fisker Cheung authored and GitHub committed 2022-03-25 16:37:34 +08:00
1 parent 30dc7b4145
commit 21c68e36ae
9 files changed
+20 -24

No files matched your search

@@ -1,6 +1,4 @@
"use strict";
const assert = () => {};
assert.ok = assert;
assert.strictEqual = assert;
module.exports = assert;
export default assert;
-6
View File
@@ -1,6 +0,0 @@
"use strict";
const chalk = require("./chalk.cjs");
const highlight = { shouldHighlight: () => false, getChalk: () => chalk };
module.exports = highlight;
+4
View File
@@ -0,0 +1,4 @@
import chalk from "./chalk.js";
export const shouldHighlight = () => false;
export const getChalk = () => chalk;
@@ -1,5 +1,3 @@
"use strict";
const chalk = (x) => x;
chalk.grey = chalk;
chalk.red = chalk;
@@ -8,4 +6,4 @@ chalk.yellow = chalk;
chalk.blue = chalk;
chalk.default = chalk;
module.exports = chalk;
export default chalk;
-3
View File
@@ -1,3 +0,0 @@
"use strict";
module.exports = () => () => {};
+3
View File
@@ -0,0 +1,3 @@
const debug = () => () => {};
export default debug;
+3 -1
View File
@@ -1,3 +1,5 @@
"use strict";
module.exports = (file) => file;
const parentModule = (file) => file;
module.exports = parentModule;