From 7ecdc62317f5c5bcc77ff37524b4948034b55311 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=97=B2=E4=BA=BA?= Date: Fri, 3 Mar 2023 23:49:34 +0800 Subject: [PATCH] =?UTF-8?q?fixed:=20=E6=89=93=E5=8C=85=E6=97=B6react?= =?UTF-8?q?=E5=BA=94=E8=AF=A5=E5=BC=95=E7=94=A8React=E8=80=8C=E4=B8=8D?= =?UTF-8?q?=E6=98=AFreact?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/form-react/rollup.config.mjs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/packages/form-react/rollup.config.mjs b/packages/form-react/rollup.config.mjs index 541efc7..2587e41 100644 --- a/packages/form-react/rollup.config.mjs +++ b/packages/form-react/rollup.config.mjs @@ -8,7 +8,10 @@ export default [{ output: { name: 'ReactObserver', file: "libs/rollup/index.js", - format: 'umd' + format: 'umd', + globals: { + react: 'React' + }, }, plugins: [nodeResolve({ modulePaths: ['libs/babel'], moduleDirectories: [] }), terser()] }, {