fix: use fixed react version

This commit is contained in:
mingholy.lmh 2026-01-29 20:02:21 +08:00
parent 86a43618a7
commit 54bb39f6ab
7 changed files with 128 additions and 20 deletions

View file

@ -14,7 +14,15 @@ export const buildConfig = {
platform: 'browser',
format: 'iife',
target: ['es2018'],
jsx: 'automatic',
jsx: 'transform',
jsxFactory: 'React.createElement',
jsxFragment: 'React.Fragment',
tsconfigRaw: {
compilerOptions: {
jsx: 'react',
},
},
external: ['react', 'react-dom', 'react-dom/client'],
legalComments: 'none',
loader: {
'.ts': 'ts',