@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 CHANGED
@@ -9,12 +9,6 @@ export declare class ExternalObject<T> {
9
9
  [K: symbol]: T
10
10
  }
11
11
  }
12
- export interface TransformOutput {
13
- code: string
14
- map?: string
15
- output?: string
16
- diagnostics: Array<string>
17
- }
18
12
  export interface NapiEndpointConfig {
19
13
 
20
14
  }
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?: {
@@ -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
@@ -9,12 +9,6 @@ export declare class ExternalObject<T> {
9
9
  [K: symbol]: T
10
10
  }
11
11
  }
12
- export interface TransformOutput {
13
- code: string
14
- map?: string
15
- output?: string
16
- diagnostics: Array<string>
17
- }
18
12
  export interface NapiEndpointConfig {
19
13
 
20
14
  }
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?: {
@@ -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.54",
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.54",
89
- "@utoo/pack-darwin-x64": "0.0.1-alpha.54",
90
- "@utoo/pack-linux-arm64-gnu": "0.0.1-alpha.54",
91
- "@utoo/pack-linux-arm64-musl": "0.0.1-alpha.54",
92
- "@utoo/pack-linux-x64-gnu": "0.0.1-alpha.54",
93
- "@utoo/pack-linux-x64-musl": "0.0.1-alpha.54",
94
- "@utoo/pack-win32-x64-msvc": "0.0.1-alpha.54"
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
  }