@umijs/bundler-webpack 4.0.0-canary.20241107.1 → 4.0.0-canary.20250918.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.
@@ -1,5 +1,6 @@
1
1
  {
2
2
  "name": "webpack",
3
+ "version": "5.88.2",
3
4
  "author": "Tobias Koppers @sokra",
4
5
  "types": "types.d.ts"
5
6
  }
@@ -67,7 +67,7 @@ async function getConfig(opts) {
67
67
  const isDev = opts.env === import_types.Env.development;
68
68
  const config = new import_webpack_5_chain.default();
69
69
  userConfig.targets || (userConfig.targets = import_constants.DEFAULT_BROWSER_TARGETS);
70
- userConfig.inlineLimit = parseInt(userConfig.inlineLimit || "10000", 10);
70
+ userConfig.inlineLimit = parseInt(userConfig.inlineLimit ?? "10000", 10);
71
71
  const useHash = !!(opts.hash || userConfig.hash && !isDev);
72
72
  const applyOpts = {
73
73
  name: opts.name,
@@ -54,15 +54,15 @@ function resolveDefine(opts) {
54
54
  env[key] = envValue;
55
55
  });
56
56
  env.PUBLIC_PATH = userConfig.publicPath || "/";
57
- for (const key in env) {
58
- env[key] = JSON.stringify(env[key]);
59
- }
60
57
  const define = {};
61
58
  if (userConfig.define) {
62
59
  for (const key in userConfig.define) {
63
60
  define[key] = JSON.stringify(userConfig.define[key]);
64
61
  }
65
62
  }
63
+ for (const key in env) {
64
+ env[key] = JSON.stringify(env[key]);
65
+ }
66
66
  return {
67
67
  "process.env": env,
68
68
  "process.env.SSR_MANIFEST": "process.env.SSR_MANIFEST",
package/dist/schema.js CHANGED
@@ -169,6 +169,7 @@ function getSchemas() {
169
169
  svgr: ({ zod }) => zod.record(zod.string(), zod.any()),
170
170
  targets: ({ zod }) => zod.record(zod.string(), zod.any()),
171
171
  theme: ({ zod }) => zod.record(zod.string(), zod.any()),
172
+ transformRuntime: ({ zod }) => zod.record(zod.string(), zod.any()),
172
173
  writeToDisk: ({ zod }) => zod.boolean()
173
174
  };
174
175
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@umijs/bundler-webpack",
3
- "version": "4.0.0-canary.20241107.1",
3
+ "version": "4.0.0-canary.20250918.1",
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/babel-preset-umi": "4.0.0-canary.20241107.1",
42
- "@umijs/bundler-utils": "4.0.0-canary.20241107.1",
43
- "@umijs/mfsu": "4.0.0-canary.20241107.1",
44
- "@umijs/utils": "4.0.0-canary.20241107.1"
41
+ "@umijs/bundler-utils": "4.0.0-canary.20250918.1",
42
+ "@umijs/mfsu": "4.0.0-canary.20250918.1",
43
+ "@umijs/utils": "4.0.0-canary.20250918.1",
44
+ "@umijs/babel-preset-umi": "4.0.0-canary.20250918.1"
45
45
  },
46
46
  "devDependencies": {
47
47
  "@swc/core": "1.3.67",