diff --git a/examples/react-component-bundle-false/rslib.config.ts b/examples/react-component-bundle-false/rslib.config.ts index c75c7acf3..915d00d80 100644 --- a/examples/react-component-bundle-false/rslib.config.ts +++ b/examples/react-component-bundle-false/rslib.config.ts @@ -33,12 +33,5 @@ export default defineConfig({ output: { target: 'web', }, - plugins: [ - pluginReact({ - swcReactOptions: { - runtime: 'classic', - }, - }), - pluginSass(), - ], + plugins: [pluginReact(), pluginSass()], }); diff --git a/examples/react-component-bundle-false/tsconfig.json b/examples/react-component-bundle-false/tsconfig.json index 2142e121c..78ba7070a 100644 --- a/examples/react-component-bundle-false/tsconfig.json +++ b/examples/react-component-bundle-false/tsconfig.json @@ -7,7 +7,7 @@ "esModuleInterop": true, "forceConsistentCasingInFileNames": true, "isolatedModules": true, - "jsx": "react", + "jsx": "react-jsx", "lib": ["DOM", "ESNext"], "moduleResolution": "node", "resolveJsonModule": true, diff --git a/examples/react-component-bundle/rslib.config.ts b/examples/react-component-bundle/rslib.config.ts index fa2bd1131..59d42518d 100644 --- a/examples/react-component-bundle/rslib.config.ts +++ b/examples/react-component-bundle/rslib.config.ts @@ -26,12 +26,5 @@ export default defineConfig({ output: { target: 'web', }, - plugins: [ - pluginReact({ - swcReactOptions: { - runtime: 'classic', - }, - }), - pluginSass(), - ], + plugins: [pluginReact(), pluginSass()], }); diff --git a/examples/react-component-bundle/tsconfig.json b/examples/react-component-bundle/tsconfig.json index 2142e121c..78ba7070a 100644 --- a/examples/react-component-bundle/tsconfig.json +++ b/examples/react-component-bundle/tsconfig.json @@ -7,7 +7,7 @@ "esModuleInterop": true, "forceConsistentCasingInFileNames": true, "isolatedModules": true, - "jsx": "react", + "jsx": "react-jsx", "lib": ["DOM", "ESNext"], "moduleResolution": "node", "resolveJsonModule": true, diff --git a/examples/react-component-umd/rslib.config.ts b/examples/react-component-umd/rslib.config.ts index b5e4971bf..99d083bdb 100644 --- a/examples/react-component-umd/rslib.config.ts +++ b/examples/react-component-umd/rslib.config.ts @@ -20,12 +20,5 @@ export default defineConfig({ output: { target: 'web', }, - plugins: [ - pluginReact({ - swcReactOptions: { - runtime: 'classic', - }, - }), - pluginSass(), - ], + plugins: [pluginReact(), pluginSass()], }); diff --git a/examples/react-component-umd/tsconfig.json b/examples/react-component-umd/tsconfig.json index 2142e121c..78ba7070a 100644 --- a/examples/react-component-umd/tsconfig.json +++ b/examples/react-component-umd/tsconfig.json @@ -7,7 +7,7 @@ "esModuleInterop": true, "forceConsistentCasingInFileNames": true, "isolatedModules": true, - "jsx": "react", + "jsx": "react-jsx", "lib": ["DOM", "ESNext"], "moduleResolution": "node", "resolveJsonModule": true, diff --git a/packages/create-rslib/fragments/base/react-js/rslib.config.mjs b/packages/create-rslib/fragments/base/react-js/rslib.config.mjs index ea02edfa7..1cc7880e2 100644 --- a/packages/create-rslib/fragments/base/react-js/rslib.config.mjs +++ b/packages/create-rslib/fragments/base/react-js/rslib.config.mjs @@ -16,11 +16,5 @@ export default defineConfig({ output: { target: 'web', }, - plugins: [ - pluginReact({ - swcReactOptions: { - runtime: 'classic', - }, - }), - ], + plugins: [pluginReact()], }); diff --git a/packages/create-rslib/fragments/base/react-ts/rslib.config.ts b/packages/create-rslib/fragments/base/react-ts/rslib.config.ts index 03bb9f7a5..0180c8c57 100644 --- a/packages/create-rslib/fragments/base/react-ts/rslib.config.ts +++ b/packages/create-rslib/fragments/base/react-ts/rslib.config.ts @@ -17,11 +17,5 @@ export default defineConfig({ output: { target: 'web', }, - plugins: [ - pluginReact({ - swcReactOptions: { - runtime: 'classic', - }, - }), - ], + plugins: [pluginReact()], }); diff --git a/packages/create-rslib/fragments/base/react-ts/tsconfig.json b/packages/create-rslib/fragments/base/react-ts/tsconfig.json index 62f3966cc..ae6b0a38b 100644 --- a/packages/create-rslib/fragments/base/react-ts/tsconfig.json +++ b/packages/create-rslib/fragments/base/react-ts/tsconfig.json @@ -2,7 +2,7 @@ "compilerOptions": { "lib": ["DOM", "ES2021"], "module": "ESNext", - "jsx": "react", + "jsx": "react-jsx", "strict": true, "skipLibCheck": true, "isolatedModules": true, diff --git a/packages/create-rslib/template-[react]-[]-js/rslib.config.mjs b/packages/create-rslib/template-[react]-[]-js/rslib.config.mjs index ea02edfa7..1cc7880e2 100644 --- a/packages/create-rslib/template-[react]-[]-js/rslib.config.mjs +++ b/packages/create-rslib/template-[react]-[]-js/rslib.config.mjs @@ -16,11 +16,5 @@ export default defineConfig({ output: { target: 'web', }, - plugins: [ - pluginReact({ - swcReactOptions: { - runtime: 'classic', - }, - }), - ], + plugins: [pluginReact()], }); diff --git a/packages/create-rslib/template-[react]-[]-ts/rslib.config.ts b/packages/create-rslib/template-[react]-[]-ts/rslib.config.ts index 03bb9f7a5..0180c8c57 100644 --- a/packages/create-rslib/template-[react]-[]-ts/rslib.config.ts +++ b/packages/create-rslib/template-[react]-[]-ts/rslib.config.ts @@ -17,11 +17,5 @@ export default defineConfig({ output: { target: 'web', }, - plugins: [ - pluginReact({ - swcReactOptions: { - runtime: 'classic', - }, - }), - ], + plugins: [pluginReact()], }); diff --git a/packages/create-rslib/template-[react]-[]-ts/tsconfig.json b/packages/create-rslib/template-[react]-[]-ts/tsconfig.json index 62f3966cc..ae6b0a38b 100644 --- a/packages/create-rslib/template-[react]-[]-ts/tsconfig.json +++ b/packages/create-rslib/template-[react]-[]-ts/tsconfig.json @@ -2,7 +2,7 @@ "compilerOptions": { "lib": ["DOM", "ES2021"], "module": "ESNext", - "jsx": "react", + "jsx": "react-jsx", "strict": true, "skipLibCheck": true, "isolatedModules": true, diff --git a/packages/create-rslib/template-[react]-[storybook,vitest]-js/rslib.config.mjs b/packages/create-rslib/template-[react]-[storybook,vitest]-js/rslib.config.mjs index ea02edfa7..1cc7880e2 100644 --- a/packages/create-rslib/template-[react]-[storybook,vitest]-js/rslib.config.mjs +++ b/packages/create-rslib/template-[react]-[storybook,vitest]-js/rslib.config.mjs @@ -16,11 +16,5 @@ export default defineConfig({ output: { target: 'web', }, - plugins: [ - pluginReact({ - swcReactOptions: { - runtime: 'classic', - }, - }), - ], + plugins: [pluginReact()], }); diff --git a/packages/create-rslib/template-[react]-[storybook,vitest]-ts/rslib.config.ts b/packages/create-rslib/template-[react]-[storybook,vitest]-ts/rslib.config.ts index 03bb9f7a5..0180c8c57 100644 --- a/packages/create-rslib/template-[react]-[storybook,vitest]-ts/rslib.config.ts +++ b/packages/create-rslib/template-[react]-[storybook,vitest]-ts/rslib.config.ts @@ -17,11 +17,5 @@ export default defineConfig({ output: { target: 'web', }, - plugins: [ - pluginReact({ - swcReactOptions: { - runtime: 'classic', - }, - }), - ], + plugins: [pluginReact()], }); diff --git a/packages/create-rslib/template-[react]-[storybook,vitest]-ts/tsconfig.json b/packages/create-rslib/template-[react]-[storybook,vitest]-ts/tsconfig.json index 62f3966cc..ae6b0a38b 100644 --- a/packages/create-rslib/template-[react]-[storybook,vitest]-ts/tsconfig.json +++ b/packages/create-rslib/template-[react]-[storybook,vitest]-ts/tsconfig.json @@ -2,7 +2,7 @@ "compilerOptions": { "lib": ["DOM", "ES2021"], "module": "ESNext", - "jsx": "react", + "jsx": "react-jsx", "strict": true, "skipLibCheck": true, "isolatedModules": true, diff --git a/packages/create-rslib/template-[react]-[storybook]-js/rslib.config.mjs b/packages/create-rslib/template-[react]-[storybook]-js/rslib.config.mjs index ea02edfa7..1cc7880e2 100644 --- a/packages/create-rslib/template-[react]-[storybook]-js/rslib.config.mjs +++ b/packages/create-rslib/template-[react]-[storybook]-js/rslib.config.mjs @@ -16,11 +16,5 @@ export default defineConfig({ output: { target: 'web', }, - plugins: [ - pluginReact({ - swcReactOptions: { - runtime: 'classic', - }, - }), - ], + plugins: [pluginReact()], }); diff --git a/packages/create-rslib/template-[react]-[storybook]-ts/rslib.config.ts b/packages/create-rslib/template-[react]-[storybook]-ts/rslib.config.ts index 03bb9f7a5..0180c8c57 100644 --- a/packages/create-rslib/template-[react]-[storybook]-ts/rslib.config.ts +++ b/packages/create-rslib/template-[react]-[storybook]-ts/rslib.config.ts @@ -17,11 +17,5 @@ export default defineConfig({ output: { target: 'web', }, - plugins: [ - pluginReact({ - swcReactOptions: { - runtime: 'classic', - }, - }), - ], + plugins: [pluginReact()], }); diff --git a/packages/create-rslib/template-[react]-[storybook]-ts/tsconfig.json b/packages/create-rslib/template-[react]-[storybook]-ts/tsconfig.json index 62f3966cc..ae6b0a38b 100644 --- a/packages/create-rslib/template-[react]-[storybook]-ts/tsconfig.json +++ b/packages/create-rslib/template-[react]-[storybook]-ts/tsconfig.json @@ -2,7 +2,7 @@ "compilerOptions": { "lib": ["DOM", "ES2021"], "module": "ESNext", - "jsx": "react", + "jsx": "react-jsx", "strict": true, "skipLibCheck": true, "isolatedModules": true, diff --git a/packages/create-rslib/template-[react]-[vitest]-js/rslib.config.mjs b/packages/create-rslib/template-[react]-[vitest]-js/rslib.config.mjs index ea02edfa7..1cc7880e2 100644 --- a/packages/create-rslib/template-[react]-[vitest]-js/rslib.config.mjs +++ b/packages/create-rslib/template-[react]-[vitest]-js/rslib.config.mjs @@ -16,11 +16,5 @@ export default defineConfig({ output: { target: 'web', }, - plugins: [ - pluginReact({ - swcReactOptions: { - runtime: 'classic', - }, - }), - ], + plugins: [pluginReact()], }); diff --git a/packages/create-rslib/template-[react]-[vitest]-ts/rslib.config.ts b/packages/create-rslib/template-[react]-[vitest]-ts/rslib.config.ts index 03bb9f7a5..0180c8c57 100644 --- a/packages/create-rslib/template-[react]-[vitest]-ts/rslib.config.ts +++ b/packages/create-rslib/template-[react]-[vitest]-ts/rslib.config.ts @@ -17,11 +17,5 @@ export default defineConfig({ output: { target: 'web', }, - plugins: [ - pluginReact({ - swcReactOptions: { - runtime: 'classic', - }, - }), - ], + plugins: [pluginReact()], }); diff --git a/packages/create-rslib/template-[react]-[vitest]-ts/tsconfig.json b/packages/create-rslib/template-[react]-[vitest]-ts/tsconfig.json index 62f3966cc..ae6b0a38b 100644 --- a/packages/create-rslib/template-[react]-[vitest]-ts/tsconfig.json +++ b/packages/create-rslib/template-[react]-[vitest]-ts/tsconfig.json @@ -2,7 +2,7 @@ "compilerOptions": { "lib": ["DOM", "ES2021"], "module": "ESNext", - "jsx": "react", + "jsx": "react-jsx", "strict": true, "skipLibCheck": true, "isolatedModules": true,