Skip to content

Commit

Permalink
Fix rollup options - 'treeshake' should be a part of inputOptions
Browse files Browse the repository at this point in the history
  • Loading branch information
jviide committed Feb 23, 2019
1 parent 65730af commit b1f16b3
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/index.js
Expand Up @@ -418,6 +418,9 @@ function createConfig(options, entry, format, writeMeta) {
}
return externalTest(id);
},
treeshake: {
propertyReadSideEffects: false,
},
plugins: []
.concat(
postcss({
Expand Down Expand Up @@ -592,9 +595,6 @@ function createConfig(options, entry, format, writeMeta) {
freeze: false,
esModule: false,
sourcemap: options.sourcemap,
treeshake: {
propertyReadSideEffects: false,
},
format,
name: options.name,
file: resolve(
Expand Down

0 comments on commit b1f16b3

Please sign in to comment.