@umijs/bundler-utoopack 4.0.0-canary.20251116.1 → 4.0.0-canary.20251124.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.
Files changed (2) hide show
  1. package/dist/config.js +3 -1
  2. package/package.json +4 -7
package/dist/config.js CHANGED
@@ -55,6 +55,7 @@ function getModularizeImports(extraBabelPlugins) {
55
55
  libraryDirectory,
56
56
  style,
57
57
  camel2DashComponentName,
58
+ transformToDefaultImport,
58
59
  ...rest
59
60
  } = v;
60
61
  if (Object.keys(rest).length > 0) {
@@ -73,10 +74,11 @@ function getModularizeImports(extraBabelPlugins) {
73
74
  if (camel2DashComponentName === false) {
74
75
  transformRule = "{{ member }}";
75
76
  }
77
+ const skipDefaultConversion = typeof transformToDefaultImport === "undefined" ? false : !Boolean(transformToDefaultImport);
76
78
  acc[libraryName] = {
77
79
  transform: `${libraryName}/${libraryDirectory}/${transformRule}`,
78
80
  preventFullImport: false,
79
- skipDefaultConversion: false,
81
+ skipDefaultConversion,
80
82
  style: typeof style === "boolean" ? "style" : style
81
83
  };
82
84
  return acc;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@umijs/bundler-utoopack",
3
- "version": "4.0.0-canary.20251116.1",
3
+ "version": "4.0.0-canary.20251124.1",
4
4
  "description": "@umijs/bundler-utoopack",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -8,21 +8,18 @@
8
8
  "dist"
9
9
  ],
10
10
  "dependencies": {
11
+ "@utoo/pack": "0.0.1-alpha.73",
11
12
  "compression": "^1.7.4",
12
13
  "connect-history-api-fallback": "^2.0.0",
13
14
  "cors": "^2.8.5",
14
15
  "express": "^4.18.2",
15
16
  "express-http-proxy": "^2.1.1",
16
- "@umijs/bundler-utils": "4.0.0-canary.20251116.1",
17
- "@umijs/bundler-webpack": "4.0.0-canary.20251116.1"
17
+ "@umijs/bundler-utils": "4.0.0-canary.20251124.1",
18
+ "@umijs/bundler-webpack": "4.0.0-canary.20251124.1"
18
19
  },
19
20
  "devDependencies": {
20
- "@utoo/pack": "^0.0.1-alpha.69",
21
21
  "father": "4.1.5"
22
22
  },
23
- "peerDependencies": {
24
- "@utoo/pack": "^0.0.1-alpha.69"
25
- },
26
23
  "publishConfig": {
27
24
  "access": "public"
28
25
  },