We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5c93c50 commit 246faeeCopy full SHA for 246faee
rspack.config.js
@@ -11,6 +11,7 @@ module.exports = (env, options) => {
11
test: /\.tsx?$/,
12
exclude: /node_modules/,
13
use: [
14
+ {
15
{
16
loader: 'builtin:swc-loader',
17
options: {
@@ -19,10 +20,21 @@ module.exports = (env, options) => {
19
20
syntax: 'typescript',
21
tsx: true,
22
},
23
+ transform: {
24
+ react: {
25
+ pragma: 'tag',
26
+ pragmaFrag: 'Array',
27
+ throwIfNamespace: false,
28
+ development: false,
29
+ useBuiltins: false,
30
+ runtime: 'classic',
31
+ },
32
33
target: 'es2015',
34
35
36
37
38
path.resolve(__dirname, 'utils/custom-loaders/html-tag-jsx-loader.js'),
39
],
40
0 commit comments