Skip to content

Commit

Permalink
build(rollup): Refactor rollup config and remove acorn dev dependenci…
Browse files Browse the repository at this point in the history
…es to use updated rollup-plugin

related aMarCruz/rollup-plugin-cleanup#13
  • Loading branch information
jcowman2 committed Jan 18, 2019
1 parent 4ff101b commit 3602ba3
Show file tree
Hide file tree
Showing 3 changed files with 29 additions and 26 deletions.
41 changes: 27 additions & 14 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 1 addition & 2 deletions package.json
Expand Up @@ -55,13 +55,12 @@
"devDependencies": {
"@types/cosmiconfig": "^5.0.3",
"@types/jest": "^23.3.10",
"acorn-dynamic-import": "^3.0.0",
"commitizen": "^3.0.5",
"coveralls": "^3.0.2",
"cz-conventional-changelog": "^2.1.0",
"jest": "^23.6.0",
"prettier": "^1.15.3",
"rollup-plugin-cleanup": "^3.0.0",
"rollup-plugin-cleanup": "^3.1.0",
"trash-cli": "^1.4.0",
"ts-jest": "^23.10.5",
"tslint": "^5.11.0",
Expand Down
11 changes: 1 addition & 10 deletions rollup.config.js
@@ -1,8 +1,6 @@
import typescript from "rollup-plugin-typescript2";
import cleanup from "rollup-plugin-cleanup";
import json from "rollup-plugin-json";
import acorn from "acorn";
import inject from "acorn-dynamic-import/lib/inject";

import pkg from "./package.json";

Expand All @@ -27,8 +25,6 @@ const tsPlugin = typescript({
}
});

inject(acorn);

export default [
{
input: "./src/index.ts",
Expand All @@ -43,12 +39,7 @@ export default [
cleanup({
extensions: [".js", ".ts"],
comments: /^((?!(Joseph R Cowman)|tslint)[\s\S])*$/, // Removes file-header comments and tslint comments
maxEmptyLines: 0,
acornOptions: {
plugins: {
dynamicImport: true
}
}
maxEmptyLines: 0
})
],
onwarn: suppressCircularImportWarnings
Expand Down

0 comments on commit 3602ba3

Please sign in to comment.