@teambit/bundler 0.0.640 → 0.0.644

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.
@@ -53,6 +53,10 @@ export declare type Target = {
53
53
  * Make the peer dependencies externals.
54
54
  */
55
55
  externalizePeer?: boolean;
56
+ /**
57
+ * Whether to run compression by the bundler
58
+ */
59
+ compress?: boolean;
56
60
  /**
57
61
  * List of peer dependencies
58
62
  */
@@ -139,6 +143,10 @@ export interface BundlerContext extends BuildContext {
139
143
  * Make the peer dependencies externals for all targets
140
144
  */
141
145
  externalizePeer?: boolean;
146
+ /**
147
+ * Whether to run compression by the bundler
148
+ */
149
+ compress?: boolean;
142
150
  /**
143
151
  * config for html generation for all targets
144
152
  */
package/dist/bundler.d.ts CHANGED
@@ -11,6 +11,10 @@ export declare type Asset = {
11
11
  * size of the asset in bytes.
12
12
  */
13
13
  size: number;
14
+ /**
15
+ * size of the compressed asset in bytes.
16
+ */
17
+ compressedSize?: number;
14
18
  };
15
19
  export declare type ChunksAssetsMap = {
16
20
  [assetName: string]: string[];
@@ -19,7 +23,9 @@ export declare type EntryAssets = {
19
23
  assets: Asset[];
20
24
  auxiliaryAssets: Asset[];
21
25
  assetsSize: number;
26
+ compressedAssetsSize?: number;
22
27
  auxiliaryAssetsSize: number;
28
+ compressedAuxiliaryAssetsSize: number;
23
29
  };
24
30
  export declare type EntriesAssetsMap = {
25
31
  [entryId: string]: EntryAssets;
package/package.json CHANGED
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "@teambit/bundler",
3
- "version": "0.0.640",
3
+ "version": "0.0.644",
4
4
  "homepage": "https://bit.dev/teambit/compilation/bundler",
5
5
  "main": "dist/index.js",
6
6
  "componentId": {
7
7
  "scope": "teambit.compilation",
8
8
  "name": "bundler",
9
- "version": "0.0.640"
9
+ "version": "0.0.644"
10
10
  },
11
11
  "dependencies": {
12
12
  "@teambit/harmony": "0.2.11",
@@ -15,12 +15,12 @@
15
15
  "lodash": "4.17.21",
16
16
  "@babel/runtime": "7.12.18",
17
17
  "core-js": "^3.0.0",
18
- "@teambit/envs": "0.0.640",
19
- "@teambit/builder": "0.0.640",
20
- "@teambit/component": "0.0.640",
21
- "@teambit/cli": "0.0.437",
22
- "@teambit/graphql": "0.0.640",
23
- "@teambit/pubsub": "0.0.640",
18
+ "@teambit/envs": "0.0.644",
19
+ "@teambit/builder": "0.0.644",
20
+ "@teambit/component": "0.0.644",
21
+ "@teambit/cli": "0.0.439",
22
+ "@teambit/graphql": "0.0.644",
23
+ "@teambit/pubsub": "0.0.644",
24
24
  "@teambit/toolbox.network.get-port": "0.0.112"
25
25
  },
26
26
  "devDependencies": {
@@ -34,7 +34,7 @@
34
34
  },
35
35
  "peerDependencies": {
36
36
  "@apollo/client": "^3.0.0",
37
- "@teambit/legacy": "1.0.213",
37
+ "@teambit/legacy": "1.0.217",
38
38
  "react-dom": "^16.8.0 || ^17.0.0",
39
39
  "react": "^16.8.0 || ^17.0.0"
40
40
  },
@@ -62,7 +62,7 @@
62
62
  "react": "-"
63
63
  },
64
64
  "peerDependencies": {
65
- "@teambit/legacy": "1.0.213",
65
+ "@teambit/legacy": "1.0.217",
66
66
  "react-dom": "^16.8.0 || ^17.0.0",
67
67
  "react": "^16.8.0 || ^17.0.0"
68
68
  }