Skip to content

Commit ed1fd71

Browse files
fix: loaders order for ts(x) files
1 parent dfb73a1 commit ed1fd71

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

rspack.config.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,6 @@ module.exports = (env, options) => {
1111
test: /\.tsx?$/,
1212
exclude: /node_modules/,
1313
use: [
14-
// First: Transform JSX to tag() calls
15-
path.resolve(__dirname, 'utils/custom-loaders/html-tag-jsx-loader.js'),
16-
// Then: Use SWC for TypeScript and ES6+ transpilation
1714
{
1815
loader: 'builtin:swc-loader',
1916
options: {
@@ -26,6 +23,7 @@ module.exports = (env, options) => {
2623
},
2724
},
2825
},
26+
path.resolve(__dirname, 'utils/custom-loaders/html-tag-jsx-loader.js'),
2927
],
3028
},
3129
// JavaScript files

0 commit comments

Comments
 (0)