@utoo/pack-shared 1.3.4 → 1.3.6
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/config.d.ts +7 -0
- package/cjs/webpackCompat.d.ts +1 -0
- package/cjs/webpackCompat.js +1 -0
- package/esm/config.d.ts +7 -0
- package/esm/webpackCompat.d.ts +1 -0
- package/esm/webpackCompat.js +1 -0
- package/package.json +1 -1
package/cjs/config.d.ts
CHANGED
|
@@ -158,6 +158,7 @@ export interface ConfigComplete {
|
|
|
158
158
|
to?: string;
|
|
159
159
|
} | string>;
|
|
160
160
|
publicPath?: string;
|
|
161
|
+
crossOriginLoading?: false | "anonymous" | "use-credentials";
|
|
161
162
|
chunkLoadingGlobal?: string;
|
|
162
163
|
entryRootExport?: string;
|
|
163
164
|
};
|
|
@@ -168,6 +169,12 @@ export interface ConfigComplete {
|
|
|
168
169
|
optimization?: {
|
|
169
170
|
moduleIds?: "named" | "deterministic";
|
|
170
171
|
noMangling?: boolean;
|
|
172
|
+
compress?: boolean | {
|
|
173
|
+
passes?: number;
|
|
174
|
+
sequences?: number;
|
|
175
|
+
keepClassnames?: boolean;
|
|
176
|
+
keepFnames?: boolean;
|
|
177
|
+
};
|
|
171
178
|
minify?: boolean;
|
|
172
179
|
treeShaking?: boolean;
|
|
173
180
|
splitChunks?: Record<"js" | "css", {
|
package/cjs/webpackCompat.d.ts
CHANGED
|
@@ -36,6 +36,7 @@ export interface WebpackResolve {
|
|
|
36
36
|
export interface WebpackOutput {
|
|
37
37
|
path?: string;
|
|
38
38
|
publicPath?: string | ((...args: any[]) => string);
|
|
39
|
+
crossOriginLoading?: false | "anonymous" | "use-credentials";
|
|
39
40
|
filename?: string | ((...args: any[]) => string);
|
|
40
41
|
chunkFilename?: string | ((...args: any[]) => string);
|
|
41
42
|
cssFilename?: string | ((...args: any[]) => string);
|
package/cjs/webpackCompat.js
CHANGED
|
@@ -451,6 +451,7 @@ function compatOutput(webpackOutput) {
|
|
|
451
451
|
assetModuleFilename: normalizeWebpackHash(webpackOutput === null || webpackOutput === void 0 ? void 0 : webpackOutput.assetModuleFilename),
|
|
452
452
|
clean: !!(webpackOutput === null || webpackOutput === void 0 ? void 0 : webpackOutput.clean),
|
|
453
453
|
publicPath: webpackOutput === null || webpackOutput === void 0 ? void 0 : webpackOutput.publicPath,
|
|
454
|
+
crossOriginLoading: webpackOutput === null || webpackOutput === void 0 ? void 0 : webpackOutput.crossOriginLoading,
|
|
454
455
|
chunkLoadingGlobal: webpackOutput === null || webpackOutput === void 0 ? void 0 : webpackOutput.chunkLoadingGlobal,
|
|
455
456
|
};
|
|
456
457
|
}
|
package/esm/config.d.ts
CHANGED
|
@@ -158,6 +158,7 @@ export interface ConfigComplete {
|
|
|
158
158
|
to?: string;
|
|
159
159
|
} | string>;
|
|
160
160
|
publicPath?: string;
|
|
161
|
+
crossOriginLoading?: false | "anonymous" | "use-credentials";
|
|
161
162
|
chunkLoadingGlobal?: string;
|
|
162
163
|
entryRootExport?: string;
|
|
163
164
|
};
|
|
@@ -168,6 +169,12 @@ export interface ConfigComplete {
|
|
|
168
169
|
optimization?: {
|
|
169
170
|
moduleIds?: "named" | "deterministic";
|
|
170
171
|
noMangling?: boolean;
|
|
172
|
+
compress?: boolean | {
|
|
173
|
+
passes?: number;
|
|
174
|
+
sequences?: number;
|
|
175
|
+
keepClassnames?: boolean;
|
|
176
|
+
keepFnames?: boolean;
|
|
177
|
+
};
|
|
171
178
|
minify?: boolean;
|
|
172
179
|
treeShaking?: boolean;
|
|
173
180
|
splitChunks?: Record<"js" | "css", {
|
package/esm/webpackCompat.d.ts
CHANGED
|
@@ -36,6 +36,7 @@ export interface WebpackResolve {
|
|
|
36
36
|
export interface WebpackOutput {
|
|
37
37
|
path?: string;
|
|
38
38
|
publicPath?: string | ((...args: any[]) => string);
|
|
39
|
+
crossOriginLoading?: false | "anonymous" | "use-credentials";
|
|
39
40
|
filename?: string | ((...args: any[]) => string);
|
|
40
41
|
chunkFilename?: string | ((...args: any[]) => string);
|
|
41
42
|
cssFilename?: string | ((...args: any[]) => string);
|
package/esm/webpackCompat.js
CHANGED
|
@@ -448,6 +448,7 @@ function compatOutput(webpackOutput) {
|
|
|
448
448
|
assetModuleFilename: normalizeWebpackHash(webpackOutput === null || webpackOutput === void 0 ? void 0 : webpackOutput.assetModuleFilename),
|
|
449
449
|
clean: !!(webpackOutput === null || webpackOutput === void 0 ? void 0 : webpackOutput.clean),
|
|
450
450
|
publicPath: webpackOutput === null || webpackOutput === void 0 ? void 0 : webpackOutput.publicPath,
|
|
451
|
+
crossOriginLoading: webpackOutput === null || webpackOutput === void 0 ? void 0 : webpackOutput.crossOriginLoading,
|
|
451
452
|
chunkLoadingGlobal: webpackOutput === null || webpackOutput === void 0 ? void 0 : webpackOutput.chunkLoadingGlobal,
|
|
452
453
|
};
|
|
453
454
|
}
|