From 6f39ae6de862f3d97b0d26c378197e1c00b7f424 Mon Sep 17 00:00:00 2001 From: Braks <78412429+bcakmakoglu@users.noreply.github.com> Date: Sat, 10 Jul 2021 12:31:09 +0200 Subject: [PATCH] update: more changes to bundle config... --- rollup.config.js | 16 ++++++++-------- src/App.vue | 2 +- src/Basic.tsx | 2 +- src/additional-components/Background/index.tsx | 2 +- src/additional-components/Controls/index.tsx | 2 +- .../MiniMap/MiniMapNode.tsx | 2 +- src/additional-components/MiniMap/index.tsx | 2 +- src/components/ConnectionLine/index.tsx | 2 +- src/components/Edges/BezierEdge.tsx | 2 +- src/components/Edges/EdgeAnchor.tsx | 2 +- src/components/Edges/EdgeText.tsx | 2 +- src/components/Edges/SmoothStepEdge.tsx | 2 +- src/components/Edges/StepEdge.tsx | 2 +- src/components/Edges/StraightEdge.tsx | 2 +- src/components/Edges/wrapEdge.tsx | 2 +- src/components/Handle/index.tsx | 2 +- src/components/Nodes/DefaultNode.tsx | 2 +- src/components/Nodes/InputNode.tsx | 2 +- src/components/Nodes/OutputNode.tsx | 2 +- src/components/Nodes/wrapNode.tsx | 2 +- src/components/UserSelection/index.tsx | 2 +- src/container/EdgeRenderer/MarkerDefinitions.tsx | 2 +- src/container/EdgeRenderer/index.tsx | 2 +- src/container/EdgeRenderer/utils.ts | 2 +- src/container/FlowRenderer/index.tsx | 2 +- src/container/GraphView/index.tsx | 2 +- src/container/NodeRenderer/index.tsx | 2 +- src/container/RevueFlow/index.tsx | 2 +- src/container/ZoomPane/index.tsx | 2 +- src/hooks/useGlobalKeyHandler.ts | 2 +- src/hooks/useKeyPress.ts | 2 +- src/main.ts | 2 +- src/types/index.ts | 2 +- vite.config.ts | 2 +- 34 files changed, 41 insertions(+), 41 deletions(-) diff --git a/rollup.config.js b/rollup.config.js index 5e1c4981..358f6f57 100644 --- a/rollup.config.js +++ b/rollup.config.js @@ -14,7 +14,7 @@ const processEnv = isProd || isTesting ? 'production' : 'development'; export const baseConfig = ({ injectCSS = true } = {}) => ({ input: 'src/index.ts', - external: ['vue', 'vue-demi', (id) => id.includes('@babel/runtime')], + external: ['vue', 'vue-demi', '@vue/composition-api', (id) => id.includes('@babel/runtime')], onwarn(warning, rollupWarn) { if (warning.code !== 'CIRCULAR_DEPENDENCY') { rollupWarn(warning); @@ -56,11 +56,11 @@ export const baseConfig = ({ injectCSS = true } = {}) => ({ export default isProd && !isTesting ? [ - baseConfig(), - baseConfig({ - mainFile: 'dist/nocss/ReactFlow-nocss.js', - moduleFile: 'dist/nocss/ReactFlow-nocss.esm.js', - injectCSS: false - }) - ] + baseConfig(), + baseConfig({ + mainFile: 'dist/nocss/ReactFlow-nocss.js', + moduleFile: 'dist/nocss/ReactFlow-nocss.esm.js', + injectCSS: false + }) + ] : baseConfig(); diff --git a/src/App.vue b/src/App.vue index 06efe323..9392ce97 100644 --- a/src/App.vue +++ b/src/App.vue @@ -6,7 +6,7 @@