Skip to content

Commit 190a4e6

Browse files
committed
Run react compiler loader before swc loader
1 parent 70ed774 commit 190a4e6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

development/webpack/webpack.config.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -343,11 +343,11 @@ const config = {
343343
test: /\.(?:ts|mts|tsx)$/u,
344344
exclude: NODE_MODULES_RE,
345345
use: [
346+
tsxLoader,
346347
{
347348
loader: reactCompilerLoader,
348349
options: defineReactCompilerLoaderOption(reactCompilerOptions),
349350
},
350-
tsxLoader,
351351
codeFenceLoader,
352352
],
353353
},
@@ -356,11 +356,11 @@ const config = {
356356
test: /\.(?:js|mjs|jsx)$/u,
357357
exclude: NODE_MODULES_RE,
358358
use: [
359+
jsxLoader,
359360
{
360361
loader: reactCompilerLoader,
361362
options: defineReactCompilerLoaderOption(reactCompilerOptions),
362363
},
363-
jsxLoader,
364364
codeFenceLoader,
365365
],
366366
},

0 commit comments

Comments
 (0)