@utoo/pack 0.0.1-alpha.29 → 0.0.1-alpha.31

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 CHANGED
@@ -106,6 +106,10 @@ export interface ConfigComplete {
106
106
  filename?: string;
107
107
  chunkFilename?: string;
108
108
  clean?: boolean;
109
+ copy?: Array<{
110
+ from: string;
111
+ to: string;
112
+ }>;
109
113
  };
110
114
  target?: string;
111
115
  sourceMaps?: boolean;
@@ -177,6 +177,24 @@
177
177
  }
178
178
  }
179
179
  },
180
+ "SchemaCopyItem": {
181
+ "description": "Copy item configuration",
182
+ "type": "object",
183
+ "required": [
184
+ "from",
185
+ "to"
186
+ ],
187
+ "properties": {
188
+ "from": {
189
+ "description": "Source path to copy from",
190
+ "type": "string"
191
+ },
192
+ "to": {
193
+ "description": "Destination path to copy to",
194
+ "type": "string"
195
+ }
196
+ }
197
+ },
180
198
  "SchemaEntryOptions": {
181
199
  "description": "Entry point configuration",
182
200
  "type": "object",
@@ -501,6 +519,13 @@
501
519
  "description": "Optimization configuration",
502
520
  "type": "object",
503
521
  "properties": {
522
+ "concatenateModules": {
523
+ "description": "Whether to concatenate modules when possible to reduce the number of chunks. This can improve performance by reducing the number of requests and improving caching.",
524
+ "type": [
525
+ "boolean",
526
+ "null"
527
+ ]
528
+ },
504
529
  "minify": {
505
530
  "description": "Whether to minify the output",
506
531
  "type": [
@@ -602,6 +627,16 @@
602
627
  "null"
603
628
  ]
604
629
  },
630
+ "copy": {
631
+ "description": "Copy files configuration",
632
+ "type": [
633
+ "array",
634
+ "null"
635
+ ],
636
+ "items": {
637
+ "$ref": "#/definitions/SchemaCopyItem"
638
+ }
639
+ },
605
640
  "filename": {
606
641
  "description": "Filename pattern for main files",
607
642
  "type": [
package/esm/types.d.ts CHANGED
@@ -106,6 +106,10 @@ export interface ConfigComplete {
106
106
  filename?: string;
107
107
  chunkFilename?: string;
108
108
  clean?: boolean;
109
+ copy?: Array<{
110
+ from: string;
111
+ to: string;
112
+ }>;
109
113
  };
110
114
  target?: string;
111
115
  sourceMaps?: boolean;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@utoo/pack",
3
- "version": "0.0.1-alpha.29",
3
+ "version": "0.0.1-alpha.31",
4
4
  "main": "cjs/index.js",
5
5
  "module": "esm/index.js",
6
6
  "exports": {
@@ -83,12 +83,12 @@
83
83
  },
84
84
  "repository": "git@github.com:umijs/mako.git",
85
85
  "optionalDependencies": {
86
- "@utoo/pack-darwin-arm64": "0.0.1-alpha.29",
87
- "@utoo/pack-darwin-x64": "0.0.1-alpha.29",
88
- "@utoo/pack-linux-arm64-gnu": "0.0.1-alpha.29",
89
- "@utoo/pack-linux-arm64-musl": "0.0.1-alpha.29",
90
- "@utoo/pack-linux-x64-gnu": "0.0.1-alpha.29",
91
- "@utoo/pack-linux-x64-musl": "0.0.1-alpha.29",
92
- "@utoo/pack-win32-x64-msvc": "0.0.1-alpha.29"
86
+ "@utoo/pack-darwin-arm64": "0.0.1-alpha.31",
87
+ "@utoo/pack-darwin-x64": "0.0.1-alpha.31",
88
+ "@utoo/pack-linux-arm64-gnu": "0.0.1-alpha.31",
89
+ "@utoo/pack-linux-arm64-musl": "0.0.1-alpha.31",
90
+ "@utoo/pack-linux-x64-gnu": "0.0.1-alpha.31",
91
+ "@utoo/pack-linux-x64-musl": "0.0.1-alpha.31",
92
+ "@utoo/pack-win32-x64-msvc": "0.0.1-alpha.31"
93
93
  }
94
94
  }