@umijs/bundler-webpack 4.0.86 → 4.0.88

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.
@@ -90,7 +90,7 @@ async function addCSSRules(opts) {
90
90
  esModule: true
91
91
  });
92
92
  }
93
- const getLocalIdent = userConfig.ssr && getLocalIdentForSSR;
93
+ const getLocalIdent = userConfig.ssr && userConfig.ssr.compiler === "esbuild" ? getLocalIdentForSSR : void 0;
94
94
  const localIdentName = "[local]___[hash:base64:5]";
95
95
  let cssLoaderModulesConfig;
96
96
  if (isAutoCSSModuleRule) {
package/dist/dev.js CHANGED
@@ -50,7 +50,7 @@ function ensureSerializableValue(obj) {
50
50
  JSON.stringify(
51
51
  obj,
52
52
  (_key, value) => {
53
- if (typeof value === "function") {
53
+ if (typeof value === "function" || import_utils.lodash.isRegExp(value)) {
54
54
  return value.toString();
55
55
  }
56
56
  return value;
package/dist/schema.js CHANGED
@@ -158,12 +158,7 @@ function getSchemas() {
158
158
  purgeCSS: ({ zod }) => zod.record(zod.string(), zod.any()),
159
159
  runtimePublicPath: ({ zod }) => zod.object({}),
160
160
  sassLoader: ({ zod }) => zod.record(zod.string(), zod.any()),
161
- srcTranspiler: ({ zod }) => zod.enum([
162
- import_types.Transpiler.babel,
163
- import_types.Transpiler.esbuild,
164
- import_types.Transpiler.swc,
165
- import_types.Transpiler.none
166
- ]),
161
+ srcTranspiler: ({ zod }) => zod.enum([import_types.Transpiler.babel, import_types.Transpiler.esbuild, import_types.Transpiler.swc]),
167
162
  srcTranspilerOptions: ({ zod }) => zod.object({
168
163
  esbuild: zod.record(zod.string(), zod.any()),
169
164
  swc: zod.record(zod.string(), zod.any())
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@umijs/bundler-webpack",
3
- "version": "4.0.86",
3
+ "version": "4.0.88",
4
4
  "description": "@umijs/bundler-webpack",
5
5
  "homepage": "https://github.com/umijs/umi/tree/master/packages/bundler-webpack#readme",
6
6
  "bugs": "https://github.com/umijs/umi/issues",
@@ -38,10 +38,10 @@
38
38
  "postcss-preset-env": "7.5.0",
39
39
  "react-error-overlay": "6.0.9",
40
40
  "react-refresh": "0.14.0",
41
- "@umijs/bundler-utils": "4.0.86",
42
- "@umijs/babel-preset-umi": "4.0.86",
43
- "@umijs/utils": "4.0.86",
44
- "@umijs/mfsu": "4.0.86"
41
+ "@umijs/babel-preset-umi": "4.0.88",
42
+ "@umijs/mfsu": "4.0.88",
43
+ "@umijs/utils": "4.0.88",
44
+ "@umijs/bundler-utils": "4.0.88"
45
45
  },
46
46
  "devDependencies": {
47
47
  "@swc/core": "1.3.67",