From 2d9f04c1ada72cd387f889eeee9e4e843dde9a3b Mon Sep 17 00:00:00 2001 From: moklick Date: Fri, 25 Feb 2022 20:14:37 +0100 Subject: [PATCH] refactor(rollup): define all deps as external --- rollup.config.js | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/rollup.config.js b/rollup.config.js index 23a1f62b..f55a3d0b 100644 --- a/rollup.config.js +++ b/rollup.config.js @@ -18,7 +18,18 @@ const processEnv = isProd || isTesting ? 'production' : 'development'; export const baseConfig = ({ mainFile = pkg.main, moduleFile = pkg.module, injectCSS = true } = {}) => ({ input: 'src/index.ts', - external: ['react', 'react-dom', (id) => id.includes('@babel/runtime')], + external: [ + 'react', + 'react-dom', + 'classcat', + 'd3-selection', + 'd3-zoom', + 'react-draggable', + 'zustand', + 'zustand/shallow', + 'zustand/context', + (id) => id.includes('@babel/runtime'), + ], onwarn(warning, rollupWarn) { if (warning.code !== 'CIRCULAR_DEPENDENCY') { rollupWarn(warning);