@umijs/bundler-webpack 4.0.87 → 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.
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,11 +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
- ]),
161
+ srcTranspiler: ({ zod }) => zod.enum([import_types.Transpiler.babel, import_types.Transpiler.esbuild, import_types.Transpiler.swc]),
166
162
  srcTranspilerOptions: ({ zod }) => zod.object({
167
163
  esbuild: zod.record(zod.string(), zod.any()),
168
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.87",
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.87",
42
- "@umijs/mfsu": "4.0.87",
43
- "@umijs/utils": "4.0.87",
44
- "@umijs/babel-preset-umi": "4.0.87"
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",