mirror of
https://github.com/developit/microbundle.git
synced 2026-01-25 14:06:50 +00:00
Merge #324
324: Move Rollup 'treeshake' value to be a part of inputOptions r=ForsakenHarmony a=jviide This pull request moves the `treeshake` value that is passed to Rollup. Based on [the documentation](https://rollupjs.org/guide/en#inputoptions) it should be a part of the `inputOptions` object instead of `outputOptions`. Co-authored-by: Joachim Viide <jviide@iki.fi>
This commit is contained in:
commit
4ef32f17bf
@ -418,6 +418,9 @@ function createConfig(options, entry, format, writeMeta) {
|
||||
}
|
||||
return externalTest(id);
|
||||
},
|
||||
treeshake: {
|
||||
propertyReadSideEffects: false,
|
||||
},
|
||||
plugins: []
|
||||
.concat(
|
||||
postcss({
|
||||
@ -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(
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user