Skip to content

Commit

Permalink
Build: Dedupe semver package (#12468)
Browse files Browse the repository at this point in the history
  • Loading branch information
fisker committed Mar 21, 2022
1 parent 0d668bc commit e67aa19
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions scripts/build/config.mjs
Expand Up @@ -248,6 +248,18 @@ const coreBundles = [
find: "const utilInspect = eval(\"require('util').inspect\")",
replacement: "const utilInspect = require('util').inspect",
},
// `editorconfig` use a older version of `semver` and only uses `semver.gte`
{
module: require.resolve("editorconfig"),
find: 'var semver = __importStar(require("semver"));',
replacement: `
var semver = {
gte: require(${JSON.stringify(
require.resolve("semver/functions/gte")
)})
};
`,
},
replaceDiffPackageEntry("lib/diff/array.js"),
],
},
Expand Down

0 comments on commit e67aa19

Please sign in to comment.