@lark-apaas/fullstack-rspack-preset 1.0.34-beta.2 → 1.0.34-beta.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/preset.js +11 -4
- package/package.json +1 -1
package/lib/preset.js
CHANGED
|
@@ -93,6 +93,16 @@ function createRecommendRspackConfig(options) {
|
|
|
93
93
|
{
|
|
94
94
|
test: /\.tsx?$/,
|
|
95
95
|
use: [
|
|
96
|
+
...(isLooseMode ? [{
|
|
97
|
+
loader: require.resolve('babel-loader'),
|
|
98
|
+
options: {
|
|
99
|
+
plugins: [
|
|
100
|
+
[
|
|
101
|
+
require.resolve('@lark-apaas/styled-jsx/babel'),
|
|
102
|
+
]
|
|
103
|
+
]
|
|
104
|
+
},
|
|
105
|
+
}] : []),
|
|
96
106
|
{
|
|
97
107
|
loader: 'builtin:swc-loader',
|
|
98
108
|
options: {
|
|
@@ -128,10 +138,7 @@ function createRecommendRspackConfig(options) {
|
|
|
128
138
|
...(isDev
|
|
129
139
|
? [require.resolve('@lark-apaas/miaoda-inspector-babel-plugin')]
|
|
130
140
|
: []),
|
|
131
|
-
|
|
132
|
-
require.resolve('@lark-apaas/styled-jsx/babel')
|
|
133
|
-
] : [])
|
|
134
|
-
],
|
|
141
|
+
].filter(Boolean),
|
|
135
142
|
},
|
|
136
143
|
],
|
|
137
144
|
},
|