@teambit/webpack 0.0.1036 → 0.0.1038
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/plugins/webpack-bit-reporter-plugin.d.ts +1 -1
- package/dist/plugins/webpack-bit-reporter-plugin.js.map +1 -1
- package/dist/{preview-1681616127919.js → preview-1681987287610.js} +2 -2
- package/package-tar/teambit-webpack-0.0.1038.tgz +0 -0
- package/package.json +9 -9
- package/plugins/webpack-bit-reporter-plugin.ts +1 -1
- package/package-tar/teambit-webpack-0.0.1036.tgz +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["PLUGIN_NAME","WebpackBitReporterPlugin","constructor","options","pubsub","devServerID","apply","compiler","hooks","compile","tap","event","WebpackCompilationStartedEvent","Date","now","pub","WebpackAspect","id","done","stats","WebpackCompilationDoneEvent"],"sources":["webpack-bit-reporter-plugin.ts"],"sourcesContent":["import type { Compiler, Stats } from 'webpack';\nimport { WebpackCompilationDoneEvent, WebpackCompilationStartedEvent } from '../events';\nimport { WebpackAspect } from '../webpack.aspect';\n\nconst PLUGIN_NAME = 'webpack-compiler-started-plugin';\n\n/**\n * Monitors Webpack's compilation, and updates progress to Bit\n */\nexport class WebpackBitReporterPlugin {\n // TODO: add plugin type from webpack and implement it\n pubsub: any;\n devServerID: string;\n\n constructor({ options }) {\n this.pubsub = options.pubsub;\n this.devServerID = options.devServerID;\n }\n\n apply(compiler: Compiler) {\n // \"Called before a new compilation is created.\"\n compiler.hooks.compile.tap(PLUGIN_NAME, () => {\n const event = new WebpackCompilationStartedEvent(Date.now(), { devServerID: this.devServerID });\n this.pubsub.pub(WebpackAspect.id, event);\n });\n\n // \"Executed when the compilation has completed.\"\n compiler.hooks.done.tap(PLUGIN_NAME, (stats: Stats) => {\n const event = new WebpackCompilationDoneEvent(Date.now(), stats, this.devServerID);\n this.pubsub.pub(WebpackAspect.id, event);\n });\n }\n}\n"],"mappings":";;;;;;;;;;;;;;AACA;EAAA;EAAA;IAAA;EAAA;EAAA;AAAA;AACA;EAAA;EAAA;IAAA;EAAA;EAAA;AAAA;AAEA,MAAMA,WAAW,GAAG,iCAAiC;;AAErD;AACA;AACA;AACO,MAAMC,wBAAwB,CAAC;EACpC;;EAIAC,WAAW,CAAC;IAAEC;EAAQ,CAAC,EAAE;IAAA;IAAA;IACvB,IAAI,CAACC,MAAM,GAAGD,OAAO,CAACC,MAAM;IAC5B,IAAI,CAACC,WAAW,GAAGF,OAAO,CAACE,WAAW;EACxC;EAEAC,KAAK,CAACC,
|
|
1
|
+
{"version":3,"names":["PLUGIN_NAME","WebpackBitReporterPlugin","constructor","options","pubsub","devServerID","apply","compiler","hooks","compile","tap","event","WebpackCompilationStartedEvent","Date","now","pub","WebpackAspect","id","done","stats","WebpackCompilationDoneEvent"],"sources":["webpack-bit-reporter-plugin.ts"],"sourcesContent":["import type { Compiler, Stats } from 'webpack';\nimport { WebpackCompilationDoneEvent, WebpackCompilationStartedEvent } from '../events';\nimport { WebpackAspect } from '../webpack.aspect';\n\nconst PLUGIN_NAME = 'webpack-compiler-started-plugin';\n\n/**\n * Monitors Webpack's compilation, and updates progress to Bit\n */\nexport class WebpackBitReporterPlugin {\n // TODO: add plugin type from webpack and implement it\n pubsub: any;\n devServerID: string;\n\n constructor({ options }) {\n this.pubsub = options.pubsub;\n this.devServerID = options.devServerID;\n }\n\n apply(compiler: Compiler | any) {\n // \"Called before a new compilation is created.\"\n compiler.hooks.compile.tap(PLUGIN_NAME, () => {\n const event = new WebpackCompilationStartedEvent(Date.now(), { devServerID: this.devServerID });\n this.pubsub.pub(WebpackAspect.id, event);\n });\n\n // \"Executed when the compilation has completed.\"\n compiler.hooks.done.tap(PLUGIN_NAME, (stats: Stats) => {\n const event = new WebpackCompilationDoneEvent(Date.now(), stats, this.devServerID);\n this.pubsub.pub(WebpackAspect.id, event);\n });\n }\n}\n"],"mappings":";;;;;;;;;;;;;;AACA;EAAA;EAAA;IAAA;EAAA;EAAA;AAAA;AACA;EAAA;EAAA;IAAA;EAAA;EAAA;AAAA;AAEA,MAAMA,WAAW,GAAG,iCAAiC;;AAErD;AACA;AACA;AACO,MAAMC,wBAAwB,CAAC;EACpC;;EAIAC,WAAW,CAAC;IAAEC;EAAQ,CAAC,EAAE;IAAA;IAAA;IACvB,IAAI,CAACC,MAAM,GAAGD,OAAO,CAACC,MAAM;IAC5B,IAAI,CAACC,WAAW,GAAGF,OAAO,CAACE,WAAW;EACxC;EAEAC,KAAK,CAACC,QAAwB,EAAE;IAC9B;IACAA,QAAQ,CAACC,KAAK,CAACC,OAAO,CAACC,GAAG,CAACV,WAAW,EAAE,MAAM;MAC5C,MAAMW,KAAK,GAAG,KAAIC,wCAA8B,EAACC,IAAI,CAACC,GAAG,EAAE,EAAE;QAAET,WAAW,EAAE,IAAI,CAACA;MAAY,CAAC,CAAC;MAC/F,IAAI,CAACD,MAAM,CAACW,GAAG,CAACC,wBAAa,CAACC,EAAE,EAAEN,KAAK,CAAC;IAC1C,CAAC,CAAC;;IAEF;IACAJ,QAAQ,CAACC,KAAK,CAACU,IAAI,CAACR,GAAG,CAACV,WAAW,EAAGmB,KAAY,IAAK;MACrD,MAAMR,KAAK,GAAG,KAAIS,qCAA2B,EAACP,IAAI,CAACC,GAAG,EAAE,EAAEK,KAAK,EAAE,IAAI,CAACd,WAAW,CAAC;MAClF,IAAI,CAACD,MAAM,CAACW,GAAG,CAACC,wBAAa,CAACC,EAAE,EAAEN,KAAK,CAAC;IAC1C,CAAC,CAAC;EACJ;AACF;AAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import * as compositions_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad3d35bfc38b9cd90c0e05b598a5a55af/teambit.webpack_webpack@0.0.
|
|
2
|
-
import * as overview_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad3d35bfc38b9cd90c0e05b598a5a55af/teambit.webpack_webpack@0.0.
|
|
1
|
+
import * as compositions_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad3d35bfc38b9cd90c0e05b598a5a55af/teambit.webpack_webpack@0.0.1038/dist/webpack.composition.js';
|
|
2
|
+
import * as overview_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad3d35bfc38b9cd90c0e05b598a5a55af/teambit.webpack_webpack@0.0.1038/dist/webpack.docs.mdx';
|
|
3
3
|
|
|
4
4
|
export const compositions = [compositions_0];
|
|
5
5
|
export const overview = [overview_0];
|
|
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.1038",
|
|
4
4
|
"homepage": "https://bit.cloud/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.1038"
|
|
10
10
|
},
|
|
11
11
|
"dependencies": {
|
|
12
12
|
"webpack": "5.51.1",
|
|
@@ -46,13 +46,13 @@
|
|
|
46
46
|
"core-js": "^3.0.0",
|
|
47
47
|
"@babel/runtime": "7.20.0",
|
|
48
48
|
"@teambit/harmony": "0.4.6",
|
|
49
|
-
"@teambit/webpack.modules.config-mutator": "0.0.
|
|
49
|
+
"@teambit/webpack.modules.config-mutator": "0.0.153",
|
|
50
50
|
"@teambit/bit-error": "0.0.402",
|
|
51
|
-
"@teambit/bundler": "0.0.
|
|
52
|
-
"@teambit/logger": "0.0.
|
|
53
|
-
"@teambit/cli": "0.0.
|
|
54
|
-
"@teambit/pubsub": "0.0.
|
|
55
|
-
"@teambit/workspace": "0.0.
|
|
51
|
+
"@teambit/bundler": "0.0.1038",
|
|
52
|
+
"@teambit/logger": "0.0.792",
|
|
53
|
+
"@teambit/cli": "0.0.699",
|
|
54
|
+
"@teambit/pubsub": "0.0.1038",
|
|
55
|
+
"@teambit/workspace": "0.0.1038",
|
|
56
56
|
"@teambit/webpack.modules.generate-expose-loaders": "0.0.10",
|
|
57
57
|
"@teambit/webpack.modules.generate-externals": "0.0.11",
|
|
58
58
|
"@teambit/webpack.plugins.inject-head-webpack-plugin": "0.0.3"
|
|
@@ -70,7 +70,7 @@
|
|
|
70
70
|
"@types/testing-library__jest-dom": "5.9.5"
|
|
71
71
|
},
|
|
72
72
|
"peerDependencies": {
|
|
73
|
-
"@teambit/legacy": "1.0.
|
|
73
|
+
"@teambit/legacy": "1.0.479",
|
|
74
74
|
"react": "^16.8.0 || ^17.0.0",
|
|
75
75
|
"react-dom": "^16.8.0 || ^17.0.0"
|
|
76
76
|
},
|
|
@@ -17,7 +17,7 @@ export class WebpackBitReporterPlugin {
|
|
|
17
17
|
this.devServerID = options.devServerID;
|
|
18
18
|
}
|
|
19
19
|
|
|
20
|
-
apply(compiler: Compiler) {
|
|
20
|
+
apply(compiler: Compiler | any) {
|
|
21
21
|
// "Called before a new compilation is created."
|
|
22
22
|
compiler.hooks.compile.tap(PLUGIN_NAME, () => {
|
|
23
23
|
const event = new WebpackCompilationStartedEvent(Date.now(), { devServerID: this.devServerID });
|
|
Binary file
|