Build: migrate scripts/shims/* to ESM (#12371)
This commit is contained in:
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;
|
||||
@@ -1,6 +0,0 @@
|
||||
"use strict";
|
||||
|
||||
const chalk = require("./chalk.cjs");
|
||||
const highlight = { shouldHighlight: () => false, getChalk: () => chalk };
|
||||
|
||||
module.exports = highlight;
|
||||
@@ -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;
|
||||
@@ -1,3 +0,0 @@
|
||||
"use strict";
|
||||
|
||||
module.exports = () => () => {};
|
||||
@@ -0,0 +1,3 @@
|
||||
const debug = () => () => {};
|
||||
|
||||
export default debug;
|
||||
@@ -1,3 +1,5 @@
|
||||
"use strict";
|
||||
|
||||
module.exports = (file) => file;
|
||||
const parentModule = (file) => file;
|
||||
|
||||
module.exports = parentModule;
|
||||
Reference in new issue
Block a user