Skip to content

Commit

Permalink
chore: dedupe some popular dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
JLHwung committed Nov 29, 2019
1 parent 7e4a944 commit e193971
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions Gulpfile.js
Expand Up @@ -167,6 +167,18 @@ function buildRollup(packages) {
rollupNodeResolve({
browser: nodeResolveBrowser,
preferBuiltins: true,
//todo: When Yarn workspaces is enabled, remove `dedupe` option
dedupe(importee) {
return (
importee.startsWith("lodash/") ||
[
"babel-plugin-dynamic-import-node/utils",
"esutils",
"semver",
"source-map",
].includes(importee)
);
},
}),
rollupCommonJs({
include: [/node_modules/, "packages/babel-preset-env/data/**"],
Expand Down

0 comments on commit e193971

Please sign in to comment.