@lark-apaas/fullstack-rspack-preset 1.0.19 → 1.0.20-alpha.1
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 +3 -0
- package/package.json +1 -1
package/lib/preset.js
CHANGED
|
@@ -105,6 +105,9 @@ function createRecommendRspackConfig(options) {
|
|
|
105
105
|
},
|
|
106
106
|
},
|
|
107
107
|
experimental: {
|
|
108
|
+
// 避免 wasm 出现到根目录,统一放到 node_modules/.cache 目录下
|
|
109
|
+
cacheRoot: path_1.default.join(rootDir, './node_modules/.cache/swc'),
|
|
110
|
+
// 支持 styled-jsx 语法
|
|
108
111
|
plugins: [[require.resolve('@swc/plugin-styled-jsx'), {}]],
|
|
109
112
|
},
|
|
110
113
|
},
|