@teambit/bundler 0.0.685 → 0.0.688
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/dist/bundler-context.d.ts +14 -0
- package/dist/index.d.ts +1 -1
- package/dist/index.js +7 -0
- package/dist/index.js.map +1 -1
- package/package-tar/teambit-bundler-0.0.688.tgz +0 -0
- package/package.json +10 -10
- /package/{preview-1648006106088.js → preview-1648142274038.js} +0 -0
- package/package-tar/teambit-bundler-0.0.685.tgz +0 -0
|
@@ -121,6 +121,16 @@ export declare type Chunking = {
|
|
|
121
121
|
*/
|
|
122
122
|
splitChunks: boolean;
|
|
123
123
|
};
|
|
124
|
+
export declare type MetaData = {
|
|
125
|
+
/**
|
|
126
|
+
* Who initiate the bundling process
|
|
127
|
+
*/
|
|
128
|
+
initiator?: string;
|
|
129
|
+
/**
|
|
130
|
+
* Env id (used usually to calculate the config)
|
|
131
|
+
*/
|
|
132
|
+
envId?: string;
|
|
133
|
+
};
|
|
124
134
|
export interface BundlerContext extends BuildContext {
|
|
125
135
|
/**
|
|
126
136
|
* targets for bundling.
|
|
@@ -161,4 +171,8 @@ export interface BundlerContext extends BuildContext {
|
|
|
161
171
|
[key: string]: string;
|
|
162
172
|
};
|
|
163
173
|
};
|
|
174
|
+
/**
|
|
175
|
+
* Additional info that can be used by the bundler for different stuff like logging info
|
|
176
|
+
*/
|
|
177
|
+
metaData?: MetaData;
|
|
164
178
|
}
|
package/dist/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export { DevServer } from './dev-server';
|
|
2
2
|
export { DevServerContext } from './dev-server-context';
|
|
3
|
-
export { BundlerContext, Target, ModuleTarget, HtmlConfig as BundlerHtmlConfig, EntryMap as BundlerEntryMap, Entry as BundlerEntry, } from './bundler-context';
|
|
3
|
+
export { BundlerContext, Target, ModuleTarget, HtmlConfig as BundlerHtmlConfig, EntryMap as BundlerEntryMap, Entry as BundlerEntry, MetaData as BundlerContextMetaData, } from './bundler-context';
|
|
4
4
|
export { Bundler, BundlerResult, BundlerMode, Asset, ChunksAssetsMap, EntriesAssetsMap, EntryAssets } from './bundler';
|
|
5
5
|
export type { BundlerMain } from './bundler.main.runtime';
|
|
6
6
|
export { BundlerAspect } from './bundler.aspect';
|
package/dist/index.js
CHANGED
|
@@ -12,6 +12,7 @@ var _exportNames = {
|
|
|
12
12
|
BundlerHtmlConfig: true,
|
|
13
13
|
BundlerEntryMap: true,
|
|
14
14
|
BundlerEntry: true,
|
|
15
|
+
BundlerContextMetaData: true,
|
|
15
16
|
Bundler: true,
|
|
16
17
|
BundlerResult: true,
|
|
17
18
|
BundlerMode: true,
|
|
@@ -47,6 +48,12 @@ Object.defineProperty(exports, "BundlerContext", {
|
|
|
47
48
|
return _bundlerContext().BundlerContext;
|
|
48
49
|
}
|
|
49
50
|
});
|
|
51
|
+
Object.defineProperty(exports, "BundlerContextMetaData", {
|
|
52
|
+
enumerable: true,
|
|
53
|
+
get: function () {
|
|
54
|
+
return _bundlerContext().MetaData;
|
|
55
|
+
}
|
|
56
|
+
});
|
|
50
57
|
Object.defineProperty(exports, "BundlerEntry", {
|
|
51
58
|
enumerable: true,
|
|
52
59
|
get: function () {
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"sources":["index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;;AAAA;AAAA;AAAA;;AAAA;AAAA;;AACA;AAAA;;AAAA;AAAA;AAAA;;AAAA;AAAA;;AACA;AAAA;;AAAA;AAAA;AAAA;;AAAA;AAAA;;AASA;AAAA;;AAAA;AAAA;AAAA;;AAAA;AAAA;;AAEA;AAAA;;AAAA;AAAA;AAAA;;AAAA;AAAA;;AACA;AAAA;;AAAA;AAAA;AAAA;;AAAA;AAAA;;AACA;AAAA;;AAAA;AAAA;AAAA;;AAAA;AAAA;;AACA;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA","sourcesContent":["export { DevServer } from './dev-server';\nexport { DevServerContext } from './dev-server-context';\nexport {\n BundlerContext,\n Target,\n ModuleTarget,\n HtmlConfig as BundlerHtmlConfig,\n EntryMap as BundlerEntryMap,\n Entry as BundlerEntry,\n MetaData as BundlerContextMetaData,\n} from './bundler-context';\nexport { Bundler, BundlerResult, BundlerMode, Asset, ChunksAssetsMap, EntriesAssetsMap, EntryAssets } from './bundler';\nexport type { BundlerMain } from './bundler.main.runtime';\nexport { BundlerAspect } from './bundler.aspect';\nexport { ComponentDir } from './get-entry';\nexport { ComponentServer } from './component-server';\nexport * from './events';\n"]}
|
|
Binary file
|
package/package.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@teambit/bundler",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.688",
|
|
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.
|
|
9
|
+
"version": "0.0.688"
|
|
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.
|
|
19
|
-
"@teambit/builder": "0.0.
|
|
20
|
-
"@teambit/component": "0.0.
|
|
21
|
-
"@teambit/cli": "0.0.
|
|
22
|
-
"@teambit/graphql": "0.0.
|
|
23
|
-
"@teambit/pubsub": "0.0.
|
|
18
|
+
"@teambit/envs": "0.0.688",
|
|
19
|
+
"@teambit/builder": "0.0.688",
|
|
20
|
+
"@teambit/component": "0.0.688",
|
|
21
|
+
"@teambit/cli": "0.0.460",
|
|
22
|
+
"@teambit/graphql": "0.0.688",
|
|
23
|
+
"@teambit/pubsub": "0.0.688",
|
|
24
24
|
"@teambit/toolbox.network.get-port": "0.0.113"
|
|
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.
|
|
37
|
+
"@teambit/legacy": "1.0.239",
|
|
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.
|
|
65
|
+
"@teambit/legacy": "1.0.239",
|
|
66
66
|
"react-dom": "^16.8.0 || ^17.0.0",
|
|
67
67
|
"react": "^16.8.0 || ^17.0.0"
|
|
68
68
|
}
|
|
File without changes
|
|
Binary file
|