From d78108ca29e61e31347e8dbf0a2c2f25bdafd4f5 Mon Sep 17 00:00:00 2001 From: Conduitry Date: Fri, 24 Jan 2020 08:43:09 -0500 Subject: [PATCH] use improved dedupe in @rollup/plugin-node-resolve@7 --- package.json | 2 +- rollup.config.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index 29cb194..fbdd81f 100644 --- a/package.json +++ b/package.json @@ -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", diff --git a/rollup.config.js b/rollup.config.js index eae4c0b..2014437 100644 --- a/rollup.config.js +++ b/rollup.config.js @@ -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(),