@utoo/pack 0.0.1-alpha.54 → 0.0.1-alpha.56
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/binding.d.ts +0 -6
- package/cjs/types.d.ts +2 -0
- package/cjs/webpackCompat.js +5 -0
- package/esm/binding.d.ts +0 -6
- package/esm/types.d.ts +2 -0
- package/esm/webpackCompat.js +5 -0
- package/package.json +8 -8
package/cjs/binding.d.ts
CHANGED
package/cjs/types.d.ts
CHANGED
|
@@ -114,6 +114,7 @@ export interface ConfigComplete {
|
|
|
114
114
|
from: string;
|
|
115
115
|
to: string;
|
|
116
116
|
}>;
|
|
117
|
+
publicPath?: string;
|
|
117
118
|
};
|
|
118
119
|
target?: string;
|
|
119
120
|
sourceMaps?: boolean;
|
|
@@ -141,6 +142,7 @@ export interface ConfigComplete {
|
|
|
141
142
|
exclude?: string[];
|
|
142
143
|
};
|
|
143
144
|
concatenateModules?: boolean;
|
|
145
|
+
removeUnusedExports?: boolean;
|
|
144
146
|
};
|
|
145
147
|
styles?: {
|
|
146
148
|
less?: {
|
package/cjs/webpackCompat.js
CHANGED
|
@@ -313,11 +313,16 @@ function compatOutput(webpackOutput) {
|
|
|
313
313
|
typeof webpackOutput.chunkFilename !== "string") {
|
|
314
314
|
throw "non string output chunkFilename not supported yet";
|
|
315
315
|
}
|
|
316
|
+
if ((webpackOutput === null || webpackOutput === void 0 ? void 0 : webpackOutput.publicPath) &&
|
|
317
|
+
typeof webpackOutput.publicPath !== "string") {
|
|
318
|
+
throw "non string output publicPath not supported yet";
|
|
319
|
+
}
|
|
316
320
|
return {
|
|
317
321
|
path: webpackOutput === null || webpackOutput === void 0 ? void 0 : webpackOutput.path,
|
|
318
322
|
filename: webpackOutput === null || webpackOutput === void 0 ? void 0 : webpackOutput.filename,
|
|
319
323
|
chunkFilename: webpackOutput === null || webpackOutput === void 0 ? void 0 : webpackOutput.chunkFilename,
|
|
320
324
|
clean: !!(webpackOutput === null || webpackOutput === void 0 ? void 0 : webpackOutput.clean),
|
|
325
|
+
publicPath: webpackOutput === null || webpackOutput === void 0 ? void 0 : webpackOutput.publicPath,
|
|
321
326
|
};
|
|
322
327
|
}
|
|
323
328
|
function compatTarget(webpackTarget) {
|
package/esm/binding.d.ts
CHANGED
package/esm/types.d.ts
CHANGED
|
@@ -114,6 +114,7 @@ export interface ConfigComplete {
|
|
|
114
114
|
from: string;
|
|
115
115
|
to: string;
|
|
116
116
|
}>;
|
|
117
|
+
publicPath?: string;
|
|
117
118
|
};
|
|
118
119
|
target?: string;
|
|
119
120
|
sourceMaps?: boolean;
|
|
@@ -141,6 +142,7 @@ export interface ConfigComplete {
|
|
|
141
142
|
exclude?: string[];
|
|
142
143
|
};
|
|
143
144
|
concatenateModules?: boolean;
|
|
145
|
+
removeUnusedExports?: boolean;
|
|
144
146
|
};
|
|
145
147
|
styles?: {
|
|
146
148
|
less?: {
|
package/esm/webpackCompat.js
CHANGED
|
@@ -310,11 +310,16 @@ function compatOutput(webpackOutput) {
|
|
|
310
310
|
typeof webpackOutput.chunkFilename !== "string") {
|
|
311
311
|
throw "non string output chunkFilename not supported yet";
|
|
312
312
|
}
|
|
313
|
+
if ((webpackOutput === null || webpackOutput === void 0 ? void 0 : webpackOutput.publicPath) &&
|
|
314
|
+
typeof webpackOutput.publicPath !== "string") {
|
|
315
|
+
throw "non string output publicPath not supported yet";
|
|
316
|
+
}
|
|
313
317
|
return {
|
|
314
318
|
path: webpackOutput === null || webpackOutput === void 0 ? void 0 : webpackOutput.path,
|
|
315
319
|
filename: webpackOutput === null || webpackOutput === void 0 ? void 0 : webpackOutput.filename,
|
|
316
320
|
chunkFilename: webpackOutput === null || webpackOutput === void 0 ? void 0 : webpackOutput.chunkFilename,
|
|
317
321
|
clean: !!(webpackOutput === null || webpackOutput === void 0 ? void 0 : webpackOutput.clean),
|
|
322
|
+
publicPath: webpackOutput === null || webpackOutput === void 0 ? void 0 : webpackOutput.publicPath,
|
|
318
323
|
};
|
|
319
324
|
}
|
|
320
325
|
function compatTarget(webpackTarget) {
|
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.56",
|
|
4
4
|
"main": "cjs/index.js",
|
|
5
5
|
"module": "esm/index.js",
|
|
6
6
|
"exports": {
|
|
@@ -85,12 +85,12 @@
|
|
|
85
85
|
},
|
|
86
86
|
"repository": "git@github.com:utooland/utoo.git",
|
|
87
87
|
"optionalDependencies": {
|
|
88
|
-
"@utoo/pack-darwin-arm64": "0.0.1-alpha.
|
|
89
|
-
"@utoo/pack-darwin-x64": "0.0.1-alpha.
|
|
90
|
-
"@utoo/pack-linux-arm64-gnu": "0.0.1-alpha.
|
|
91
|
-
"@utoo/pack-linux-arm64-musl": "0.0.1-alpha.
|
|
92
|
-
"@utoo/pack-linux-x64-gnu": "0.0.1-alpha.
|
|
93
|
-
"@utoo/pack-linux-x64-musl": "0.0.1-alpha.
|
|
94
|
-
"@utoo/pack-win32-x64-msvc": "0.0.1-alpha.
|
|
88
|
+
"@utoo/pack-darwin-arm64": "0.0.1-alpha.56",
|
|
89
|
+
"@utoo/pack-darwin-x64": "0.0.1-alpha.56",
|
|
90
|
+
"@utoo/pack-linux-arm64-gnu": "0.0.1-alpha.56",
|
|
91
|
+
"@utoo/pack-linux-arm64-musl": "0.0.1-alpha.56",
|
|
92
|
+
"@utoo/pack-linux-x64-gnu": "0.0.1-alpha.56",
|
|
93
|
+
"@utoo/pack-linux-x64-musl": "0.0.1-alpha.56",
|
|
94
|
+
"@utoo/pack-win32-x64-msvc": "0.0.1-alpha.56"
|
|
95
95
|
}
|
|
96
96
|
}
|