@lark-apaas/fullstack-rspack-preset 1.0.19 → 1.0.20

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.
Files changed (2) hide show
  1. package/lib/preset.js +3 -0
  2. 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
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lark-apaas/fullstack-rspack-preset",
3
- "version": "1.0.19",
3
+ "version": "1.0.20",
4
4
  "files": [
5
5
  "lib",
6
6
  "patches",