From 709fd1c9fddee5192c7b5161b7f20e359189e523 Mon Sep 17 00:00:00 2001 From: Conduitry Date: Tue, 9 Jul 2019 10:12:27 -0400 Subject: [PATCH] dedupe svelte package --- package.json | 6 +++--- rollup.config.js | 5 ++++- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/package.json b/package.json index 8800154..48087d8 100644 --- a/package.json +++ b/package.json @@ -3,10 +3,10 @@ "version": "1.0.0", "devDependencies": { "npm-run-all": "^4.1.5", - "rollup": "^1.10.1", - "rollup-plugin-commonjs": "^9.3.4", + "rollup": "^1.12.0", + "rollup-plugin-commonjs": "^10.0.0", "rollup-plugin-livereload": "^1.0.0", - "rollup-plugin-node-resolve": "^4.2.3", + "rollup-plugin-node-resolve": "^5.2.0", "rollup-plugin-svelte": "^5.0.3", "rollup-plugin-terser": "^4.0.4", "svelte": "^3.0.0" diff --git a/rollup.config.js b/rollup.config.js index 087e455..e5b94ec 100644 --- a/rollup.config.js +++ b/rollup.config.js @@ -30,7 +30,10 @@ export default { // some cases you'll need additional configuration — // consult the documentation for details: // https://github.com/rollup/rollup-plugin-commonjs - resolve({ browser: true }), + resolve({ + browser: true, + dedupe: importee => importee === 'svelte' || importee.startsWith('svelte/') + }), commonjs(), // Watch the `public` directory and refresh the