Skip to content

Commit 4e1f592

Browse files
committed
fixed compacting dependency
shouldn't be optional because it's generally recommended for production and because we don't want to burden users with maintaining low-level dependencies
1 parent 9707781 commit 4e1f592

File tree

3 files changed

+4
-5
lines changed

3 files changed

+4
-5
lines changed

lib/bundle/config.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -87,8 +87,7 @@ function generateConfig({ extensions = [], externals, format, moduleName,
8787
commonjs({ include: "node_modules/**" })
8888
]);
8989
if(compact) {
90-
let cleanup = requireOptional("rollup-plugin-cleanup",
91-
"failed to activate compacting");
90+
let cleanup = require("rollup-plugin-cleanup");
9291
plugins = plugins.concat(cleanup());
9392
}
9493

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@
4040
"json-diff": "^0.5.2",
4141
"mocha": "^5.0.1",
4242
"npm-run-all": "^4.1.2",
43-
"release-util-fnd": "^1.1.0"
43+
"release-util-fnd": "^1.1.0",
44+
"rollup-plugin-cleanup": "^2.0.0"
4445
}
4546
}

pkg/faucet-pipeline-esnext/package.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@
1717
"babel-plugin-external-helpers": "^6.22.0",
1818
"babel-preset-env": "^1.6.1",
1919
"faucet-pipeline-js": "1.0.0-beta.1",
20-
"rollup-plugin-babel": "^3.0.3",
21-
"rollup-plugin-cleanup": "^2.0.0"
20+
"rollup-plugin-babel": "^3.0.3"
2221
}
2322
}

0 commit comments

Comments
 (0)