File tree Expand file tree Collapse file tree 4 files changed +19
-4
lines changed
examples/react-component-umd
tests/e2e/react-component Expand file tree Collapse file tree 4 files changed +19
-4
lines changed Original file line number Diff line number Diff line change @@ -20,5 +20,12 @@ export default defineConfig({
2020 output : {
2121 target : 'web' ,
2222 } ,
23- plugins : [ pluginReact ( ) , pluginSass ( ) ] ,
23+ plugins : [
24+ pluginReact ( {
25+ swcReactOptions : {
26+ runtime : 'classic' ,
27+ } ,
28+ } ) ,
29+ pluginSass ( ) ,
30+ ] ,
2431} ) ;
Original file line number Diff line number Diff line change 77 "esModuleInterop" : true ,
88 "forceConsistentCasingInFileNames" : true ,
99 "isolatedModules" : true ,
10- "jsx" : " react-jsx " ,
10+ "jsx" : " react" ,
1111 "lib" : [" DOM" , " ESNext" ],
1212 "moduleResolution" : " node" ,
1313 "resolveJsonModule" : true ,
Original file line number Diff line number Diff line change 55 "scripts" : {
66 "dev:bundle" : " ../../node_modules/.bin/rsbuild dev --environment=bundle" ,
77 "dev:bundle-false" : " ../../node_modules/.bin/rsbuild dev --environment=bundleFalse" ,
8- "dev:umd" : " ../../node_modules/.bin/rsbuild dev --environment=umd"
8+ "dev:umd" : " pnpm umd:build && pnpm umd:copy && ../../node_modules/.bin/rsbuild dev --environment=umd" ,
9+ "umd:build" : " cd ../../../examples/react-component-umd && pnpm run build" ,
10+ "umd:copy" : " rm -rf ./public && mkdir -p ./public/umd && cp ../../../examples/react-component-umd/dist/umd/index.js ./public/umd/index.js"
911 },
1012 "dependencies" : {
1113 "@examples/react-component-bundle" : " workspace:*" ,
Original file line number Diff line number Diff line change @@ -63,5 +63,11 @@ export default defineConfig({
6363 output : {
6464 target : 'web' ,
6565 } ,
66- plugins : [ pluginReact ( ) ] ,
66+ plugins : [
67+ pluginReact ( {
68+ swcReactOptions : {
69+ runtime : 'classic' ,
70+ } ,
71+ } ) ,
72+ ] ,
6773} ) ;
You can’t perform that action at this time.
0 commit comments