diff options
author | Hsieh Chin Fan <pham@topo.tw> | 2024-10-17 10:31:08 +0800 |
---|---|---|
committer | Hsieh Chin Fan <pham@topo.tw> | 2024-10-17 10:31:08 +0800 |
commit | 5b1e0f50415fd7834b467e18859c0bd789c646a9 (patch) | |
tree | 0f9f993da73d89ab68f16b993312a8a95c42d12e /scripts/rollup.config.js | |
parent | 337a562ee8c9e2531a1a6799acaa66567ad7ef12 (diff) |
style: standardjs
Diffstat (limited to 'scripts/rollup.config.js')
-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) { |