@utoo/pack 0.0.1-alpha.24 → 0.0.1-alpha.25
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/cjs/types.d.ts +7 -7
- package/cjs/webpackCompat.js +9 -1
- package/esm/types.d.ts +7 -7
- package/esm/webpackCompat.js +9 -1
- package/package.json +8 -8
package/cjs/types.d.ts
CHANGED
|
@@ -109,6 +109,7 @@ export interface ConfigComplete {
|
|
|
109
109
|
};
|
|
110
110
|
target?: string;
|
|
111
111
|
sourceMaps?: boolean;
|
|
112
|
+
define?: Record<string, string>;
|
|
112
113
|
optimization?: {
|
|
113
114
|
moduleIds?: "named" | "deterministic";
|
|
114
115
|
minify?: boolean;
|
|
@@ -129,22 +130,21 @@ export interface ConfigComplete {
|
|
|
129
130
|
exclude?: string[];
|
|
130
131
|
};
|
|
131
132
|
};
|
|
132
|
-
define?: Record<string, string>;
|
|
133
133
|
styles?: {
|
|
134
|
-
|
|
134
|
+
less?: {
|
|
135
135
|
implementation?: string;
|
|
136
136
|
[key: string]: any;
|
|
137
137
|
};
|
|
138
|
-
|
|
138
|
+
sass?: {
|
|
139
139
|
implementation?: string;
|
|
140
140
|
[key: string]: any;
|
|
141
141
|
};
|
|
142
|
-
styledJsx?: boolean | {
|
|
143
|
-
useLightningcss?: boolean;
|
|
144
|
-
};
|
|
145
142
|
inlineCss?: {
|
|
146
143
|
insert?: string;
|
|
147
|
-
injectType
|
|
144
|
+
injectType?: string;
|
|
145
|
+
};
|
|
146
|
+
styledJsx?: boolean | {
|
|
147
|
+
useLightningcss?: boolean;
|
|
148
148
|
};
|
|
149
149
|
styledComponents?: boolean | StyledComponentsConfig;
|
|
150
150
|
emotion?: boolean | EmotionConfig;
|
package/cjs/webpackCompat.js
CHANGED
|
@@ -70,7 +70,15 @@ function compatEntry(webpackEntry) {
|
|
|
70
70
|
}
|
|
71
71
|
}
|
|
72
72
|
else {
|
|
73
|
-
|
|
73
|
+
if (v.length === 0) {
|
|
74
|
+
throw "entry value items is empty";
|
|
75
|
+
}
|
|
76
|
+
else if (v.length === 1) {
|
|
77
|
+
entry.push({ name: k, import: v[0] });
|
|
78
|
+
}
|
|
79
|
+
else {
|
|
80
|
+
throw "multi entry items for one entry not supported yet";
|
|
81
|
+
}
|
|
74
82
|
}
|
|
75
83
|
break;
|
|
76
84
|
default:
|
package/esm/types.d.ts
CHANGED
|
@@ -109,6 +109,7 @@ export interface ConfigComplete {
|
|
|
109
109
|
};
|
|
110
110
|
target?: string;
|
|
111
111
|
sourceMaps?: boolean;
|
|
112
|
+
define?: Record<string, string>;
|
|
112
113
|
optimization?: {
|
|
113
114
|
moduleIds?: "named" | "deterministic";
|
|
114
115
|
minify?: boolean;
|
|
@@ -129,22 +130,21 @@ export interface ConfigComplete {
|
|
|
129
130
|
exclude?: string[];
|
|
130
131
|
};
|
|
131
132
|
};
|
|
132
|
-
define?: Record<string, string>;
|
|
133
133
|
styles?: {
|
|
134
|
-
|
|
134
|
+
less?: {
|
|
135
135
|
implementation?: string;
|
|
136
136
|
[key: string]: any;
|
|
137
137
|
};
|
|
138
|
-
|
|
138
|
+
sass?: {
|
|
139
139
|
implementation?: string;
|
|
140
140
|
[key: string]: any;
|
|
141
141
|
};
|
|
142
|
-
styledJsx?: boolean | {
|
|
143
|
-
useLightningcss?: boolean;
|
|
144
|
-
};
|
|
145
142
|
inlineCss?: {
|
|
146
143
|
insert?: string;
|
|
147
|
-
injectType
|
|
144
|
+
injectType?: string;
|
|
145
|
+
};
|
|
146
|
+
styledJsx?: boolean | {
|
|
147
|
+
useLightningcss?: boolean;
|
|
148
148
|
};
|
|
149
149
|
styledComponents?: boolean | StyledComponentsConfig;
|
|
150
150
|
emotion?: boolean | EmotionConfig;
|
package/esm/webpackCompat.js
CHANGED
|
@@ -67,7 +67,15 @@ function compatEntry(webpackEntry) {
|
|
|
67
67
|
}
|
|
68
68
|
}
|
|
69
69
|
else {
|
|
70
|
-
|
|
70
|
+
if (v.length === 0) {
|
|
71
|
+
throw "entry value items is empty";
|
|
72
|
+
}
|
|
73
|
+
else if (v.length === 1) {
|
|
74
|
+
entry.push({ name: k, import: v[0] });
|
|
75
|
+
}
|
|
76
|
+
else {
|
|
77
|
+
throw "multi entry items for one entry not supported yet";
|
|
78
|
+
}
|
|
71
79
|
}
|
|
72
80
|
break;
|
|
73
81
|
default:
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@utoo/pack",
|
|
3
|
-
"version": "0.0.1-alpha.
|
|
3
|
+
"version": "0.0.1-alpha.25",
|
|
4
4
|
"main": "cjs/index.js",
|
|
5
5
|
"module": "esm/index.js",
|
|
6
6
|
"exports": {
|
|
@@ -82,12 +82,12 @@
|
|
|
82
82
|
},
|
|
83
83
|
"repository": "git@github.com:umijs/mako.git",
|
|
84
84
|
"optionalDependencies": {
|
|
85
|
-
"@utoo/pack-darwin-arm64": "0.0.1-alpha.
|
|
86
|
-
"@utoo/pack-darwin-x64": "0.0.1-alpha.
|
|
87
|
-
"@utoo/pack-linux-arm64-gnu": "0.0.1-alpha.
|
|
88
|
-
"@utoo/pack-linux-arm64-musl": "0.0.1-alpha.
|
|
89
|
-
"@utoo/pack-linux-x64-gnu": "0.0.1-alpha.
|
|
90
|
-
"@utoo/pack-linux-x64-musl": "0.0.1-alpha.
|
|
91
|
-
"@utoo/pack-win32-x64-msvc": "0.0.1-alpha.
|
|
85
|
+
"@utoo/pack-darwin-arm64": "0.0.1-alpha.25",
|
|
86
|
+
"@utoo/pack-darwin-x64": "0.0.1-alpha.25",
|
|
87
|
+
"@utoo/pack-linux-arm64-gnu": "0.0.1-alpha.25",
|
|
88
|
+
"@utoo/pack-linux-arm64-musl": "0.0.1-alpha.25",
|
|
89
|
+
"@utoo/pack-linux-x64-gnu": "0.0.1-alpha.25",
|
|
90
|
+
"@utoo/pack-linux-x64-musl": "0.0.1-alpha.25",
|
|
91
|
+
"@utoo/pack-win32-x64-msvc": "0.0.1-alpha.25"
|
|
92
92
|
}
|
|
93
93
|
}
|