use improved dedupe in @rollup/plugin-node-resolve@7

This commit is contained in:
Conduitry 2020-01-24 08:43:09 -05:00
parent 4b6ab60fe5
commit d78108ca29
2 changed files with 2 additions and 2 deletions

View file

@ -8,7 +8,7 @@
},
"devDependencies": {
"@rollup/plugin-commonjs": "^11.0.0",
"@rollup/plugin-node-resolve": "^6.0.0",
"@rollup/plugin-node-resolve": "^7.0.0",
"rollup": "^1.20.0",
"rollup-plugin-livereload": "^1.0.0",
"rollup-plugin-svelte": "^5.0.3",

View file

@ -32,7 +32,7 @@ export default {
// https://github.com/rollup/plugins/tree/master/packages/commonjs
resolve({
browser: true,
dedupe: importee => importee === 'svelte' || importee.startsWith('svelte/')
dedupe: ['svelte']
}),
commonjs(),