@teambit/webpack 0.0.554 → 0.0.555
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/config/html.d.ts +1 -0
- package/dist/plugins/webpack-bit-reporter-plugin.d.ts +3 -0
- package/dist/webpack.bundler.d.ts +15 -1
- package/dist/webpack.main.runtime.d.ts +32 -1
- package/package-tar/teambit-webpack-0.0.555.tgz +0 -0
- package/package.json +10 -10
- package/tsconfig.json +0 -1
- package/package-tar/teambit-webpack-0.0.554.tgz +0 -0
package/dist/config/html.d.ts
CHANGED
|
@@ -2,11 +2,25 @@ import { Bundler, BundlerResult, Target } from '@teambit/bundler';
|
|
|
2
2
|
import { Logger } from '@teambit/logger';
|
|
3
3
|
import { Configuration } from 'webpack';
|
|
4
4
|
export declare class WebpackBundler implements Bundler {
|
|
5
|
+
/**
|
|
6
|
+
* targets to bundle.
|
|
7
|
+
*/
|
|
5
8
|
private targets;
|
|
9
|
+
/**
|
|
10
|
+
* webpack configuration.
|
|
11
|
+
*/
|
|
6
12
|
private configs;
|
|
7
13
|
private logger;
|
|
8
14
|
private webpack;
|
|
9
|
-
constructor(
|
|
15
|
+
constructor(
|
|
16
|
+
/**
|
|
17
|
+
* targets to bundle.
|
|
18
|
+
*/
|
|
19
|
+
targets: Target[],
|
|
20
|
+
/**
|
|
21
|
+
* webpack configuration.
|
|
22
|
+
*/
|
|
23
|
+
configs: Configuration[], logger: Logger, webpack: any);
|
|
10
24
|
run(): Promise<BundlerResult[]>;
|
|
11
25
|
private getComponents;
|
|
12
26
|
}
|
|
@@ -15,11 +15,42 @@ export declare type GlobalWebpackConfigTransformContext = {
|
|
|
15
15
|
export declare type WebpackConfigTransformer = (config: WebpackConfigMutator, context: WebpackConfigTransformContext) => WebpackConfigMutator;
|
|
16
16
|
export declare type WebpackConfigDevServerTransformer = (config: WebpackConfigMutator, context: WebpackConfigDevServerTransformContext) => WebpackConfigMutator;
|
|
17
17
|
export declare class WebpackMain {
|
|
18
|
+
/**
|
|
19
|
+
* Pubsub extension.
|
|
20
|
+
*/
|
|
18
21
|
pubsub: PubsubMain;
|
|
22
|
+
/**
|
|
23
|
+
* workspace extension.
|
|
24
|
+
*/
|
|
19
25
|
private workspace;
|
|
26
|
+
/**
|
|
27
|
+
* bundler extension.
|
|
28
|
+
*/
|
|
20
29
|
private bundler;
|
|
30
|
+
/**
|
|
31
|
+
* Logger extension
|
|
32
|
+
*/
|
|
21
33
|
logger: Logger;
|
|
22
|
-
constructor(
|
|
34
|
+
constructor(
|
|
35
|
+
/**
|
|
36
|
+
* Pubsub extension.
|
|
37
|
+
*/
|
|
38
|
+
pubsub: PubsubMain,
|
|
39
|
+
/**
|
|
40
|
+
* workspace extension.
|
|
41
|
+
*/
|
|
42
|
+
workspace: Workspace,
|
|
43
|
+
/**
|
|
44
|
+
* bundler extension.
|
|
45
|
+
*/
|
|
46
|
+
bundler: BundlerMain,
|
|
47
|
+
/**
|
|
48
|
+
* Logger extension
|
|
49
|
+
*/
|
|
50
|
+
logger: Logger);
|
|
51
|
+
/**
|
|
52
|
+
* create an instance of bit-compliant webpack dev server for a set of components
|
|
53
|
+
*/
|
|
23
54
|
createDevServer(context: DevServerContext, transformers?: WebpackConfigTransformer[]): DevServer;
|
|
24
55
|
mergeConfig(target: any, source: any): any;
|
|
25
56
|
createBundler(context: BundlerContext, transformers?: WebpackConfigTransformer[], initialConfigs?: webpack.Configuration[]): WebpackBundler;
|
|
Binary file
|
package/package.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@teambit/webpack",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.555",
|
|
4
4
|
"homepage": "https://bit.dev/teambit/webpack/webpack",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"componentId": {
|
|
7
7
|
"scope": "teambit.webpack",
|
|
8
8
|
"name": "webpack",
|
|
9
|
-
"version": "0.0.
|
|
9
|
+
"version": "0.0.555"
|
|
10
10
|
},
|
|
11
11
|
"dependencies": {
|
|
12
12
|
"webpack": "5.51.1",
|
|
@@ -38,13 +38,13 @@
|
|
|
38
38
|
"assert": "2.0.0",
|
|
39
39
|
"@babel/runtime": "7.12.18",
|
|
40
40
|
"core-js": "^3.0.0",
|
|
41
|
-
"@teambit/webpack.modules.config-mutator": "0.0.
|
|
42
|
-
"@teambit/bit-error": "0.0.
|
|
43
|
-
"@teambit/bundler": "0.0.
|
|
44
|
-
"@teambit/logger": "0.0.
|
|
45
|
-
"@teambit/cli": "0.0.
|
|
46
|
-
"@teambit/pubsub": "0.0.
|
|
47
|
-
"@teambit/workspace": "0.0.
|
|
41
|
+
"@teambit/webpack.modules.config-mutator": "0.0.112",
|
|
42
|
+
"@teambit/bit-error": "0.0.372",
|
|
43
|
+
"@teambit/bundler": "0.0.555",
|
|
44
|
+
"@teambit/logger": "0.0.471",
|
|
45
|
+
"@teambit/cli": "0.0.386",
|
|
46
|
+
"@teambit/pubsub": "0.0.555",
|
|
47
|
+
"@teambit/workspace": "0.0.555"
|
|
48
48
|
},
|
|
49
49
|
"devDependencies": {
|
|
50
50
|
"@types/webpack": "5.28.0",
|
|
@@ -56,7 +56,7 @@
|
|
|
56
56
|
"@types/node": "12.20.4"
|
|
57
57
|
},
|
|
58
58
|
"peerDependencies": {
|
|
59
|
-
"@teambit/legacy": "1.0.
|
|
59
|
+
"@teambit/legacy": "1.0.172",
|
|
60
60
|
"react-dom": "^16.8.0 || ^17.0.0",
|
|
61
61
|
"react": "^16.8.0 || ^17.0.0"
|
|
62
62
|
},
|
package/tsconfig.json
CHANGED
|
Binary file
|