diff options
| -rw-r--r-- | scripts/rollup.config.js | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/scripts/rollup.config.js b/scripts/rollup.config.js index 7dc9f75..434bd85 100644 --- a/scripts/rollup.config.js +++ b/scripts/rollup.config.js | |||
| @@ -81,11 +81,12 @@ export default [ | |||
| 81 | .filter(config => { | 81 | .filter(config => { |
| 82 | if (addon) return config.input.match(/dumbymap/) | 82 | if (addon) return config.input.match(/dumbymap/) |
| 83 | if (!prod) return config.input.match(/editor/) | 83 | if (!prod) return config.input.match(/editor/) |
| 84 | return true | ||
| 84 | }) | 85 | }) |
| 85 | .map(config => { | 86 | .map(config => { |
| 86 | if (!addon) return config | 87 | if (!addon) return config |
| 87 | 88 | ||
| 88 | config.output.forEach(o => o.dir = './addon') | 89 | config.output.forEach(o => { o.dir = './addon' }) |
| 89 | config.plugins.push({ | 90 | config.plugins.push({ |
| 90 | name: 'remove-exports', | 91 | name: 'remove-exports', |
| 91 | transform (code, id) { | 92 | transform (code, id) { |