From 7dc247015d01186f762da1e7f9047f887891b0b9 Mon Sep 17 00:00:00 2001 From: newbyvector Date: Wed, 29 May 2024 16:52:00 +0800 Subject: [PATCH] chore: update version --- .npmrc | 4 ++-- packages/core/package.json | 2 +- packages/core/rollup.config.js | 5 +++++ 3 files changed, 8 insertions(+), 3 deletions(-) diff --git a/.npmrc b/.npmrc index 309fa2f4..86665d59 100644 --- a/.npmrc +++ b/.npmrc @@ -1,7 +1,7 @@ # Using npmmirror.com instead of taobao.org to avoid extra redirects in lockfile # see https://github.com/pnpm/pnpm/issues/5769#issuecomment-1345283717 -#registry=https://registry.npmjs.org -registry=https://registry.npmmirror.com +registry=https://registry.npmjs.org +# registry=https://registry.npmmirror.com # PNPM strict-peer-dependencies=false diff --git a/packages/core/package.json b/packages/core/package.json index ec151d4e..58080fef 100644 --- a/packages/core/package.json +++ b/packages/core/package.json @@ -1,6 +1,6 @@ { "name": "@antv/xflow", - "version": "2.1.4", + "version": "2.1.6", "description": "", "main": "dist/index.cjs.js", "module": "dist/index.esm.js", diff --git a/packages/core/rollup.config.js b/packages/core/rollup.config.js index a4f777ac..15c3205b 100644 --- a/packages/core/rollup.config.js +++ b/packages/core/rollup.config.js @@ -27,7 +27,12 @@ export default () => { format: 'umd', file: 'dist/index.umd.js', sourcemap: true, + globals: { + react: 'React', + 'react-dom': 'ReactDOM', + }, }, ], + external: ['react', 'react-dom'], }; };