Skip to content

Commit 246faee

Browse files
Update rspack.config.js
Co-authored-by: greptile-apps[bot] <165735046+greptile-apps[bot]@users.noreply.github.com>
1 parent 5c93c50 commit 246faee

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

rspack.config.js

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ module.exports = (env, options) => {
1111
test: /\.tsx?$/,
1212
exclude: /node_modules/,
1313
use: [
14+
{
1415
{
1516
loader: 'builtin:swc-loader',
1617
options: {
@@ -19,10 +20,21 @@ module.exports = (env, options) => {
1920
syntax: 'typescript',
2021
tsx: true,
2122
},
23+
transform: {
24+
react: {
25+
pragma: 'tag',
26+
pragmaFrag: 'Array',
27+
throwIfNamespace: false,
28+
development: false,
29+
useBuiltins: false,
30+
runtime: 'classic',
31+
},
32+
},
2233
target: 'es2015',
2334
},
2435
},
2536
},
37+
},
2638
path.resolve(__dirname, 'utils/custom-loaders/html-tag-jsx-loader.js'),
2739
],
2840
},

0 commit comments

Comments
 (0)