@teambit/webpack 1.0.461 → 1.0.463

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.
@@ -1,4 +1,4 @@
1
1
  <?xml version="1.0" encoding="UTF-8"?>
2
2
  <testsuites tests="0" failures="0" errors="0" skipped="0">
3
- <testsuite name="teambit.webpack/webpack@1.0.461" tests="0" failures="0" errors="0" skipped="0"/>
3
+ <testsuite name="teambit.webpack/webpack@1.0.463" tests="0" failures="0" errors="0" skipped="0"/>
4
4
  </testsuites>
@@ -1 +1 @@
1
- !function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports["teambit.webpack/webpack-preview"]=t():e["teambit.webpack/webpack-preview"]=t()}(self,(()=>(()=>{"use strict";var e={28786:(e,t,o)=>{var r={id:"teambit.webpack/webpack@1.0.461",homepage:"https://bit.cloud/teambit/webpack/webpack",exported:!0};function n(){const e=i(o(41594));return n=function(){return e},e}function i(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0}),t.Logo=void 0,n.__bit_component=r,i.__bit_component=r;const a=()=>n().default.createElement("div",{style:{height:"100%",display:"flex",justifyContent:"center"}},n().default.createElement("img",{style:{width:70},src:"https://static.bit.dev/brands/logo-webpack.svg"}));a.__bit_component=r,t.Logo=a},41594:e=>{e.exports=React}},t={};function o(r){var n=t[r];if(void 0!==n)return n.exports;var i=t[r]={exports:{}};return e[r](i,i.exports,o),i.exports}o.d=(e,t)=>{for(var r in t)o.o(t,r)&&!o.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},o.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),o.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var r={};o.r(r),o.d(r,{compositions:()=>f,compositions_metadata:()=>m,overview:()=>b});var n={};o.r(n),o.d(n,{default:()=>d});var i=o(28786);o(41594);const a=MdxJsReact,c=TeambitMdxUiMdxScopeContext;var p=["components"];function s(){return s=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var r in o)({}).hasOwnProperty.call(o,r)&&(e[r]=o[r])}return e},s.apply(null,arguments)}var u={},l="wrapper";function d(e){var t=e.components,o=function(e,t){if(null==e)return{};var o,r,n=function(e,t){if(null==e)return{};var o={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.includes(r))continue;o[r]=e[r]}return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)o=i[r],t.includes(o)||{}.propertyIsEnumerable.call(e,o)&&(n[o]=e[o])}return n}(e,p);return(0,a.mdx)(l,s({},u,o,{components:t,mdxType:"MDXLayout"}),(0,a.mdx)(c.MDXScopeProvider,{components:{},mdxType:"MDXScopeProvider"}))}d.isMDXComponent=!0;const f=[i],b=[n],m={compositions:[{displayName:"Logo",identifier:"Logo"}]};return r})()));
1
+ !function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports["teambit.webpack/webpack-preview"]=t():e["teambit.webpack/webpack-preview"]=t()}(self,(()=>(()=>{"use strict";var e={56952:(e,t,o)=>{var r={id:"teambit.webpack/webpack@1.0.463",homepage:"https://bit.cloud/teambit/webpack/webpack",exported:!0};function n(){const e=i(o(41594));return n=function(){return e},e}function i(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0}),t.Logo=void 0,n.__bit_component=r,i.__bit_component=r;const a=()=>n().default.createElement("div",{style:{height:"100%",display:"flex",justifyContent:"center"}},n().default.createElement("img",{style:{width:70},src:"https://static.bit.dev/brands/logo-webpack.svg"}));a.__bit_component=r,t.Logo=a},41594:e=>{e.exports=React}},t={};function o(r){var n=t[r];if(void 0!==n)return n.exports;var i=t[r]={exports:{}};return e[r](i,i.exports,o),i.exports}o.d=(e,t)=>{for(var r in t)o.o(t,r)&&!o.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},o.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),o.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var r={};o.r(r),o.d(r,{compositions:()=>f,compositions_metadata:()=>m,overview:()=>b});var n={};o.r(n),o.d(n,{default:()=>d});var i=o(56952);o(41594);const a=MdxJsReact,c=TeambitMdxUiMdxScopeContext;var p=["components"];function s(){return s=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var r in o)({}).hasOwnProperty.call(o,r)&&(e[r]=o[r])}return e},s.apply(null,arguments)}var u={},l="wrapper";function d(e){var t=e.components,o=function(e,t){if(null==e)return{};var o,r,n=function(e,t){if(null==e)return{};var o={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.includes(r))continue;o[r]=e[r]}return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)o=i[r],t.includes(o)||{}.propertyIsEnumerable.call(e,o)&&(n[o]=e[o])}return n}(e,p);return(0,a.mdx)(l,s({},u,o,{components:t,mdxType:"MDXLayout"}),(0,a.mdx)(c.MDXScopeProvider,{components:{},mdxType:"MDXScopeProvider"}))}d.isMDXComponent=!0;const f=[i],b=[n],m={compositions:[{displayName:"Logo",identifier:"Logo"}]};return r})()));
@@ -1550,7 +1550,7 @@
1550
1550
  "_legacy": {
1551
1551
  "scope": "teambit.webpack",
1552
1552
  "name": "webpack",
1553
- "version": "1.0.461"
1553
+ "version": "1.0.463"
1554
1554
  },
1555
1555
  "_scope": "teambit.webpack"
1556
1556
  }
@@ -1818,7 +1818,7 @@
1818
1818
  "_legacy": {
1819
1819
  "scope": "teambit.webpack",
1820
1820
  "name": "webpack",
1821
- "version": "1.0.461"
1821
+ "version": "1.0.463"
1822
1822
  },
1823
1823
  "_scope": "teambit.webpack"
1824
1824
  }
@@ -1909,7 +1909,7 @@
1909
1909
  "_legacy": {
1910
1910
  "scope": "teambit.webpack",
1911
1911
  "name": "webpack",
1912
- "version": "1.0.461"
1912
+ "version": "1.0.463"
1913
1913
  },
1914
1914
  "_scope": "teambit.webpack"
1915
1915
  }
@@ -2066,7 +2066,7 @@
2066
2066
  "_legacy": {
2067
2067
  "scope": "teambit.webpack",
2068
2068
  "name": "webpack",
2069
- "version": "1.0.461"
2069
+ "version": "1.0.463"
2070
2070
  },
2071
2071
  "_scope": "teambit.webpack"
2072
2072
  }
@@ -2203,7 +2203,7 @@
2203
2203
  "_legacy": {
2204
2204
  "scope": "teambit.webpack",
2205
2205
  "name": "webpack",
2206
- "version": "1.0.461"
2206
+ "version": "1.0.463"
2207
2207
  },
2208
2208
  "_scope": "teambit.webpack"
2209
2209
  }
@@ -2269,14 +2269,14 @@
2269
2269
  "__schema": "ClassSchema",
2270
2270
  "location": {
2271
2271
  "filePath": "plugins/webpack-bit-reporter-plugin.ts",
2272
- "line": 10,
2272
+ "line": 14,
2273
2273
  "character": 1
2274
2274
  },
2275
2275
  "doc": {
2276
2276
  "__schema": "DocSchema",
2277
2277
  "location": {
2278
2278
  "filePath": "plugins/webpack-bit-reporter-plugin.ts",
2279
- "line": 7,
2279
+ "line": 11,
2280
2280
  "character": 1
2281
2281
  },
2282
2282
  "raw": "/**\n * Monitors Webpack's compilation, and updates progress to Bit\n */",
@@ -2290,7 +2290,7 @@
2290
2290
  "__schema": "VariableLikeSchema",
2291
2291
  "location": {
2292
2292
  "filePath": "plugins/webpack-bit-reporter-plugin.ts",
2293
- "line": 12,
2293
+ "line": 16,
2294
2294
  "character": 3
2295
2295
  },
2296
2296
  "signature": "(property) WebpackBitReporterPlugin.pubsub: any",
@@ -2299,7 +2299,7 @@
2299
2299
  "__schema": "KeywordTypeSchema",
2300
2300
  "location": {
2301
2301
  "filePath": "plugins/webpack-bit-reporter-plugin.ts",
2302
- "line": 12,
2302
+ "line": 16,
2303
2303
  "character": 11
2304
2304
  },
2305
2305
  "name": "any"
@@ -2310,7 +2310,7 @@
2310
2310
  "__schema": "VariableLikeSchema",
2311
2311
  "location": {
2312
2312
  "filePath": "plugins/webpack-bit-reporter-plugin.ts",
2313
- "line": 13,
2313
+ "line": 17,
2314
2314
  "character": 3
2315
2315
  },
2316
2316
  "signature": "(property) WebpackBitReporterPlugin.devServerID: string",
@@ -2319,7 +2319,7 @@
2319
2319
  "__schema": "KeywordTypeSchema",
2320
2320
  "location": {
2321
2321
  "filePath": "plugins/webpack-bit-reporter-plugin.ts",
2322
- "line": 13,
2322
+ "line": 17,
2323
2323
  "character": 16
2324
2324
  },
2325
2325
  "name": "string"
@@ -2330,7 +2330,7 @@
2330
2330
  "__schema": "ConstructorSchema",
2331
2331
  "location": {
2332
2332
  "filePath": "plugins/webpack-bit-reporter-plugin.ts",
2333
- "line": 15,
2333
+ "line": 19,
2334
2334
  "character": 3
2335
2335
  },
2336
2336
  "signature": "constructor WebpackBitReporterPlugin({ options }: {\n options: any;\n}): WebpackBitReporterPlugin",
@@ -2340,7 +2340,7 @@
2340
2340
  "__schema": "ParameterSchema",
2341
2341
  "location": {
2342
2342
  "filePath": "plugins/webpack-bit-reporter-plugin.ts",
2343
- "line": 15,
2343
+ "line": 19,
2344
2344
  "character": 15
2345
2345
  },
2346
2346
  "name": "{ options }",
@@ -2348,7 +2348,7 @@
2348
2348
  "__schema": "TypeLiteralSchema",
2349
2349
  "location": {
2350
2350
  "filePath": "plugins/webpack-bit-reporter-plugin.ts",
2351
- "line": 15,
2351
+ "line": 19,
2352
2352
  "character": 15
2353
2353
  },
2354
2354
  "members": [
@@ -2356,7 +2356,7 @@
2356
2356
  "__schema": "InferenceTypeSchema",
2357
2357
  "location": {
2358
2358
  "filePath": "plugins/webpack-bit-reporter-plugin.ts",
2359
- "line": 15,
2359
+ "line": 19,
2360
2360
  "character": 15
2361
2361
  },
2362
2362
  "name": "options",
@@ -2370,7 +2370,7 @@
2370
2370
  "__schema": "InferenceTypeSchema",
2371
2371
  "location": {
2372
2372
  "filePath": "plugins/webpack-bit-reporter-plugin.ts",
2373
- "line": 15,
2373
+ "line": 19,
2374
2374
  "character": 17
2375
2375
  },
2376
2376
  "name": "options",
@@ -2385,7 +2385,7 @@
2385
2385
  "__schema": "ThisTypeSchema",
2386
2386
  "location": {
2387
2387
  "filePath": "plugins/webpack-bit-reporter-plugin.ts",
2388
- "line": 10,
2388
+ "line": 14,
2389
2389
  "character": 1
2390
2390
  },
2391
2391
  "name": "WebpackBitReporterPlugin"
@@ -2396,7 +2396,7 @@
2396
2396
  "__schema": "FunctionLikeSchema",
2397
2397
  "location": {
2398
2398
  "filePath": "plugins/webpack-bit-reporter-plugin.ts",
2399
- "line": 20,
2399
+ "line": 24,
2400
2400
  "character": 3
2401
2401
  },
2402
2402
  "signature": "(method) WebpackBitReporterPlugin.apply(compiler: Compiler | any): void",
@@ -2406,7 +2406,7 @@
2406
2406
  "__schema": "ParameterSchema",
2407
2407
  "location": {
2408
2408
  "filePath": "plugins/webpack-bit-reporter-plugin.ts",
2409
- "line": 20,
2409
+ "line": 24,
2410
2410
  "character": 9
2411
2411
  },
2412
2412
  "name": "compiler",
@@ -2414,7 +2414,7 @@
2414
2414
  "__schema": "TypeUnionSchema",
2415
2415
  "location": {
2416
2416
  "filePath": "plugins/webpack-bit-reporter-plugin.ts",
2417
- "line": 20,
2417
+ "line": 24,
2418
2418
  "character": 19
2419
2419
  },
2420
2420
  "types": [
@@ -2422,7 +2422,7 @@
2422
2422
  "__schema": "TypeRefSchema",
2423
2423
  "location": {
2424
2424
  "filePath": "plugins/webpack-bit-reporter-plugin.ts",
2425
- "line": 20,
2425
+ "line": 24,
2426
2426
  "character": 19
2427
2427
  },
2428
2428
  "name": "Compiler",
@@ -2432,7 +2432,7 @@
2432
2432
  "__schema": "KeywordTypeSchema",
2433
2433
  "location": {
2434
2434
  "filePath": "plugins/webpack-bit-reporter-plugin.ts",
2435
- "line": 20,
2435
+ "line": 24,
2436
2436
  "character": 30
2437
2437
  },
2438
2438
  "name": "any"
@@ -2447,12 +2447,33 @@
2447
2447
  "__schema": "InferenceTypeSchema",
2448
2448
  "location": {
2449
2449
  "filePath": "plugins/webpack-bit-reporter-plugin.ts",
2450
- "line": 20,
2450
+ "line": 24,
2451
2451
  "character": 3
2452
2452
  },
2453
2453
  "type": "void"
2454
2454
  },
2455
2455
  "modifiers": []
2456
+ },
2457
+ {
2458
+ "__schema": "VariableLikeSchema",
2459
+ "location": {
2460
+ "filePath": "plugins/webpack-bit-reporter-plugin.ts",
2461
+ "line": 44,
2462
+ "character": 3
2463
+ },
2464
+ "signature": "(property) WebpackBitReporterPlugin.USE_DEV_SERVER_EVENTS: true",
2465
+ "name": "USE_DEV_SERVER_EVENTS",
2466
+ "type": {
2467
+ "__schema": "InferenceTypeSchema",
2468
+ "location": {
2469
+ "filePath": "plugins/webpack-bit-reporter-plugin.ts",
2470
+ "line": 44,
2471
+ "character": 3
2472
+ },
2473
+ "type": "true"
2474
+ },
2475
+ "isOptional": true,
2476
+ "defaultValue": "true"
2456
2477
  }
2457
2478
  ],
2458
2479
  "extendsNodes": [],
@@ -4342,7 +4363,7 @@
4342
4363
  "_legacy": {
4343
4364
  "scope": "teambit.webpack",
4344
4365
  "name": "webpack",
4345
- "version": "1.0.461"
4366
+ "version": "1.0.463"
4346
4367
  },
4347
4368
  "_scope": "teambit.webpack"
4348
4369
  }
@@ -4645,7 +4666,7 @@
4645
4666
  "_legacy": {
4646
4667
  "scope": "teambit.webpack",
4647
4668
  "name": "webpack",
4648
- "version": "1.0.461"
4669
+ "version": "1.0.463"
4649
4670
  },
4650
4671
  "_scope": "teambit.webpack"
4651
4672
  }
@@ -4914,7 +4935,7 @@
4914
4935
  "_legacy": {
4915
4936
  "scope": "teambit.webpack",
4916
4937
  "name": "webpack",
4917
- "version": "1.0.461"
4938
+ "version": "1.0.463"
4918
4939
  },
4919
4940
  "_scope": "teambit.webpack"
4920
4941
  }
@@ -5143,7 +5164,7 @@
5143
5164
  "_legacy": {
5144
5165
  "scope": "teambit.webpack",
5145
5166
  "name": "webpack",
5146
- "version": "1.0.461"
5167
+ "version": "1.0.463"
5147
5168
  },
5148
5169
  "_scope": "teambit.webpack"
5149
5170
  }
@@ -5369,7 +5390,7 @@
5369
5390
  "_legacy": {
5370
5391
  "scope": "teambit.webpack",
5371
5392
  "name": "webpack",
5372
- "version": "1.0.461"
5393
+ "version": "1.0.463"
5373
5394
  },
5374
5395
  "_scope": "teambit.webpack"
5375
5396
  }
@@ -5434,14 +5455,14 @@
5434
5455
  "__schema": "ClassSchema",
5435
5456
  "location": {
5436
5457
  "filePath": "plugins/webpack-bit-reporter-plugin.ts",
5437
- "line": 10,
5458
+ "line": 14,
5438
5459
  "character": 1
5439
5460
  },
5440
5461
  "doc": {
5441
5462
  "__schema": "DocSchema",
5442
5463
  "location": {
5443
5464
  "filePath": "plugins/webpack-bit-reporter-plugin.ts",
5444
- "line": 7,
5465
+ "line": 11,
5445
5466
  "character": 1
5446
5467
  },
5447
5468
  "raw": "/**\n * Monitors Webpack's compilation, and updates progress to Bit\n */",
@@ -5455,7 +5476,7 @@
5455
5476
  "__schema": "VariableLikeSchema",
5456
5477
  "location": {
5457
5478
  "filePath": "plugins/webpack-bit-reporter-plugin.ts",
5458
- "line": 12,
5479
+ "line": 16,
5459
5480
  "character": 3
5460
5481
  },
5461
5482
  "signature": "(property) WebpackBitReporterPlugin.pubsub: any",
@@ -5464,7 +5485,7 @@
5464
5485
  "__schema": "KeywordTypeSchema",
5465
5486
  "location": {
5466
5487
  "filePath": "plugins/webpack-bit-reporter-plugin.ts",
5467
- "line": 12,
5488
+ "line": 16,
5468
5489
  "character": 11
5469
5490
  },
5470
5491
  "name": "any"
@@ -5475,7 +5496,7 @@
5475
5496
  "__schema": "VariableLikeSchema",
5476
5497
  "location": {
5477
5498
  "filePath": "plugins/webpack-bit-reporter-plugin.ts",
5478
- "line": 13,
5499
+ "line": 17,
5479
5500
  "character": 3
5480
5501
  },
5481
5502
  "signature": "(property) WebpackBitReporterPlugin.devServerID: string",
@@ -5484,7 +5505,7 @@
5484
5505
  "__schema": "KeywordTypeSchema",
5485
5506
  "location": {
5486
5507
  "filePath": "plugins/webpack-bit-reporter-plugin.ts",
5487
- "line": 13,
5508
+ "line": 17,
5488
5509
  "character": 16
5489
5510
  },
5490
5511
  "name": "string"
@@ -5495,7 +5516,7 @@
5495
5516
  "__schema": "ConstructorSchema",
5496
5517
  "location": {
5497
5518
  "filePath": "plugins/webpack-bit-reporter-plugin.ts",
5498
- "line": 15,
5519
+ "line": 19,
5499
5520
  "character": 3
5500
5521
  },
5501
5522
  "signature": "constructor WebpackBitReporterPlugin({ options }: {\n options: any;\n}): WebpackBitReporterPlugin",
@@ -5505,7 +5526,7 @@
5505
5526
  "__schema": "ParameterSchema",
5506
5527
  "location": {
5507
5528
  "filePath": "plugins/webpack-bit-reporter-plugin.ts",
5508
- "line": 15,
5529
+ "line": 19,
5509
5530
  "character": 15
5510
5531
  },
5511
5532
  "name": "{ options }",
@@ -5513,7 +5534,7 @@
5513
5534
  "__schema": "TypeLiteralSchema",
5514
5535
  "location": {
5515
5536
  "filePath": "plugins/webpack-bit-reporter-plugin.ts",
5516
- "line": 15,
5537
+ "line": 19,
5517
5538
  "character": 15
5518
5539
  },
5519
5540
  "members": [
@@ -5521,7 +5542,7 @@
5521
5542
  "__schema": "InferenceTypeSchema",
5522
5543
  "location": {
5523
5544
  "filePath": "plugins/webpack-bit-reporter-plugin.ts",
5524
- "line": 15,
5545
+ "line": 19,
5525
5546
  "character": 15
5526
5547
  },
5527
5548
  "name": "options",
@@ -5535,7 +5556,7 @@
5535
5556
  "__schema": "InferenceTypeSchema",
5536
5557
  "location": {
5537
5558
  "filePath": "plugins/webpack-bit-reporter-plugin.ts",
5538
- "line": 15,
5559
+ "line": 19,
5539
5560
  "character": 17
5540
5561
  },
5541
5562
  "name": "options",
@@ -5550,7 +5571,7 @@
5550
5571
  "__schema": "ThisTypeSchema",
5551
5572
  "location": {
5552
5573
  "filePath": "plugins/webpack-bit-reporter-plugin.ts",
5553
- "line": 10,
5574
+ "line": 14,
5554
5575
  "character": 1
5555
5576
  },
5556
5577
  "name": "WebpackBitReporterPlugin"
@@ -5561,7 +5582,7 @@
5561
5582
  "__schema": "FunctionLikeSchema",
5562
5583
  "location": {
5563
5584
  "filePath": "plugins/webpack-bit-reporter-plugin.ts",
5564
- "line": 20,
5585
+ "line": 24,
5565
5586
  "character": 3
5566
5587
  },
5567
5588
  "signature": "(method) WebpackBitReporterPlugin.apply(compiler: Compiler | any): void",
@@ -5571,7 +5592,7 @@
5571
5592
  "__schema": "ParameterSchema",
5572
5593
  "location": {
5573
5594
  "filePath": "plugins/webpack-bit-reporter-plugin.ts",
5574
- "line": 20,
5595
+ "line": 24,
5575
5596
  "character": 9
5576
5597
  },
5577
5598
  "name": "compiler",
@@ -5579,7 +5600,7 @@
5579
5600
  "__schema": "TypeUnionSchema",
5580
5601
  "location": {
5581
5602
  "filePath": "plugins/webpack-bit-reporter-plugin.ts",
5582
- "line": 20,
5603
+ "line": 24,
5583
5604
  "character": 19
5584
5605
  },
5585
5606
  "types": [
@@ -5587,7 +5608,7 @@
5587
5608
  "__schema": "TypeRefSchema",
5588
5609
  "location": {
5589
5610
  "filePath": "plugins/webpack-bit-reporter-plugin.ts",
5590
- "line": 20,
5611
+ "line": 24,
5591
5612
  "character": 19
5592
5613
  },
5593
5614
  "name": "Compiler",
@@ -5597,7 +5618,7 @@
5597
5618
  "__schema": "KeywordTypeSchema",
5598
5619
  "location": {
5599
5620
  "filePath": "plugins/webpack-bit-reporter-plugin.ts",
5600
- "line": 20,
5621
+ "line": 24,
5601
5622
  "character": 30
5602
5623
  },
5603
5624
  "name": "any"
@@ -5612,12 +5633,33 @@
5612
5633
  "__schema": "InferenceTypeSchema",
5613
5634
  "location": {
5614
5635
  "filePath": "plugins/webpack-bit-reporter-plugin.ts",
5615
- "line": 20,
5636
+ "line": 24,
5616
5637
  "character": 3
5617
5638
  },
5618
5639
  "type": "void"
5619
5640
  },
5620
5641
  "modifiers": []
5642
+ },
5643
+ {
5644
+ "__schema": "VariableLikeSchema",
5645
+ "location": {
5646
+ "filePath": "plugins/webpack-bit-reporter-plugin.ts",
5647
+ "line": 44,
5648
+ "character": 3
5649
+ },
5650
+ "signature": "(property) WebpackBitReporterPlugin.USE_DEV_SERVER_EVENTS: true",
5651
+ "name": "USE_DEV_SERVER_EVENTS",
5652
+ "type": {
5653
+ "__schema": "InferenceTypeSchema",
5654
+ "location": {
5655
+ "filePath": "plugins/webpack-bit-reporter-plugin.ts",
5656
+ "line": 44,
5657
+ "character": 3
5658
+ },
5659
+ "type": "true"
5660
+ },
5661
+ "isOptional": true,
5662
+ "defaultValue": "true"
5621
5663
  }
5622
5664
  ],
5623
5665
  "extendsNodes": [],
@@ -5629,7 +5671,7 @@
5629
5671
  "__schema": "ModuleSchema",
5630
5672
  "location": {
5631
5673
  "filePath": "plugins/webpack-bit-reporter-plugin.ts",
5632
- "line": 5,
5674
+ "line": 9,
5633
5675
  "character": 1
5634
5676
  },
5635
5677
  "exports": [
@@ -5637,7 +5679,7 @@
5637
5679
  "__schema": "VariableLikeSchema",
5638
5680
  "location": {
5639
5681
  "filePath": "plugins/webpack-bit-reporter-plugin.ts",
5640
- "line": 5,
5682
+ "line": 9,
5641
5683
  "character": 7
5642
5684
  },
5643
5685
  "signature": "const PLUGIN_NAME: \"webpack-compiler-started-plugin\"",
@@ -5646,7 +5688,7 @@
5646
5688
  "__schema": "InferenceTypeSchema",
5647
5689
  "location": {
5648
5690
  "filePath": "plugins/webpack-bit-reporter-plugin.ts",
5649
- "line": 5,
5691
+ "line": 9,
5650
5692
  "character": 7
5651
5693
  },
5652
5694
  "type": "\"webpack-compiler-started-plugin\""
@@ -5940,7 +5982,7 @@
5940
5982
  "componentId": {
5941
5983
  "scope": "teambit.webpack",
5942
5984
  "name": "webpack",
5943
- "version": "1.0.461"
5985
+ "version": "1.0.463"
5944
5986
  },
5945
5987
  "taggedModuleExports": []
5946
5988
  }
@@ -9,4 +9,5 @@ export declare class WebpackBitReporterPlugin {
9
9
  options: any;
10
10
  });
11
11
  apply(compiler: Compiler | any): void;
12
+ static readonly USE_DEV_SERVER_EVENTS = true;
12
13
  }
@@ -4,16 +4,16 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.WebpackBitReporterPlugin = void 0;
7
- function _events() {
8
- const data = require("../events");
9
- _events = function () {
7
+ function _bundler() {
8
+ const data = require("@teambit/bundler");
9
+ _bundler = function () {
10
10
  return data;
11
11
  };
12
12
  return data;
13
13
  }
14
- function _webpack() {
15
- const data = require("../webpack.aspect");
16
- _webpack = function () {
14
+ function _previewCli() {
15
+ const data = require("@teambit/preview.cli.dev-server-events-listener");
16
+ _previewCli = function () {
17
17
  return data;
18
18
  };
19
19
  return data;
@@ -39,19 +39,25 @@ class WebpackBitReporterPlugin {
39
39
  apply(compiler) {
40
40
  // "Called before a new compilation is created."
41
41
  compiler.hooks.compile.tap(PLUGIN_NAME, () => {
42
- const event = new (_events().WebpackCompilationStartedEvent)(Date.now(), {
43
- devServerID: this.devServerID
44
- });
45
- this.pubsub.pub(_webpack().WebpackAspect.id, event);
42
+ const event = new (_previewCli().DevServerCompilationStartedEvent)(Date.now(), this.devServerID);
43
+ this.pubsub.pub(_bundler().BundlerAspect.id, event);
46
44
  });
47
45
 
48
46
  // "Executed when the compilation has completed."
49
47
  compiler.hooks.done.tap(PLUGIN_NAME, stats => {
50
- const event = new (_events().WebpackCompilationDoneEvent)(Date.now(), stats, this.devServerID);
51
- this.pubsub.pub(_webpack().WebpackAspect.id, event);
48
+ const results = {
49
+ errors: stats.compilation.errors,
50
+ warnings: stats.compilation.warnings,
51
+ compiling: false
52
+ };
53
+ const event = new (_previewCli().DevServerCompilationDoneEvent)(Date.now(), this.devServerID, results);
54
+ this.pubsub.pub(_bundler().BundlerAspect.id, event);
52
55
  });
53
56
  }
57
+
58
+ // flag to indicate whether the plugin uses the dev server events or the legacy webpack events
54
59
  }
55
60
  exports.WebpackBitReporterPlugin = WebpackBitReporterPlugin;
61
+ _defineProperty(WebpackBitReporterPlugin, "USE_DEV_SERVER_EVENTS", true);
56
62
 
57
63
  //# sourceMappingURL=webpack-bit-reporter-plugin.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["_events","data","require","_webpack","_defineProperty","e","r","t","_toPropertyKey","Object","defineProperty","value","enumerable","configurable","writable","i","_toPrimitive","Symbol","toPrimitive","call","TypeError","String","Number","PLUGIN_NAME","WebpackBitReporterPlugin","constructor","options","pubsub","devServerID","apply","compiler","hooks","compile","tap","event","WebpackCompilationStartedEvent","Date","now","pub","WebpackAspect","id","done","stats","WebpackCompilationDoneEvent","exports"],"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":";;;;;;A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AAKA,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,CAAC,CAAC,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,CAAC,CAAC,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;AAACU,OAAA,CAAApB,wBAAA,GAAAA,wBAAA","ignoreList":[]}
1
+ {"version":3,"names":["_bundler","data","require","_previewCli","_defineProperty","e","r","t","_toPropertyKey","Object","defineProperty","value","enumerable","configurable","writable","i","_toPrimitive","Symbol","toPrimitive","call","TypeError","String","Number","PLUGIN_NAME","WebpackBitReporterPlugin","constructor","options","pubsub","devServerID","apply","compiler","hooks","compile","tap","event","DevServerCompilationStartedEvent","Date","now","pub","BundlerAspect","id","done","stats","results","errors","compilation","warnings","compiling","DevServerCompilationDoneEvent","exports"],"sources":["webpack-bit-reporter-plugin.ts"],"sourcesContent":["import type { Compiler, Stats } from 'webpack';\n\nimport { BundlerAspect } from '@teambit/bundler';\nimport {\n DevServerCompilationStartedEvent,\n DevServerCompilationDoneEvent,\n} from '@teambit/preview.cli.dev-server-events-listener';\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 DevServerCompilationStartedEvent(Date.now(), this.devServerID);\n this.pubsub.pub(BundlerAspect.id, event);\n });\n\n // \"Executed when the compilation has completed.\"\n compiler.hooks.done.tap(PLUGIN_NAME, (stats: Stats) => {\n const results = {\n errors: stats.compilation.errors,\n warnings: stats.compilation.warnings,\n compiling: false,\n };\n const event = new DevServerCompilationDoneEvent(Date.now(), this.devServerID, results);\n this.pubsub.pub(BundlerAspect.id, event);\n });\n }\n\n // flag to indicate whether the plugin uses the dev server events or the legacy webpack events\n static readonly USE_DEV_SERVER_EVENTS = true;\n}\n"],"mappings":";;;;;;AAEA,SAAAA,SAAA;EAAA,MAAAC,IAAA,GAAAC,OAAA;EAAAF,QAAA,YAAAA,CAAA;IAAA,OAAAC,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AACA,SAAAE,YAAA;EAAA,MAAAF,IAAA,GAAAC,OAAA;EAAAC,WAAA,YAAAA,CAAA;IAAA,OAAAF,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AAGyD,SAAAG,gBAAAC,CAAA,EAAAC,CAAA,EAAAC,CAAA,YAAAD,CAAA,GAAAE,cAAA,CAAAF,CAAA,MAAAD,CAAA,GAAAI,MAAA,CAAAC,cAAA,CAAAL,CAAA,EAAAC,CAAA,IAAAK,KAAA,EAAAJ,CAAA,EAAAK,UAAA,MAAAC,YAAA,MAAAC,QAAA,UAAAT,CAAA,CAAAC,CAAA,IAAAC,CAAA,EAAAF,CAAA;AAAA,SAAAG,eAAAD,CAAA,QAAAQ,CAAA,GAAAC,YAAA,CAAAT,CAAA,uCAAAQ,CAAA,GAAAA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AAG,CAAC,CAAC,EAAE,IAAI,CAACT,WAAW,EAAEe,OAAO,CAAC;MACtF,IAAI,CAAChB,MAAM,CAACW,GAAG,CAACC,wBAAa,CAACC,EAAE,EAAEN,KAAK,CAAC;IAC1C,CAAC,CAAC;EACJ;;EAEA;AAEF;AAACe,OAAA,CAAAzB,wBAAA,GAAAA,wBAAA;AAAApB,eAAA,CA/BYoB,wBAAwB,2BA8BK,IAAI","ignoreList":[]}
@@ -1,5 +1,5 @@
1
- import * as compositions_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad/teambit.webpack_webpack@1.0.461/dist/webpack.composition.js';
2
- import * as overview_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad/teambit.webpack_webpack@1.0.461/dist/webpack.docs.mdx';
1
+ import * as compositions_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad/teambit.webpack_webpack@1.0.463/dist/webpack.composition.js';
2
+ import * as overview_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad/teambit.webpack_webpack@1.0.463/dist/webpack.docs.mdx';
3
3
 
4
4
  export const compositions = [compositions_0];
5
5
  export const overview = [overview_0];
package/package.json CHANGED
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "@teambit/webpack",
3
- "version": "1.0.461",
3
+ "version": "1.0.463",
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": "1.0.461"
9
+ "version": "1.0.463"
10
10
  },
11
11
  "dependencies": {
12
12
  "webpack": "5.84.1",
@@ -46,12 +46,13 @@
46
46
  "enhanced-resolve": "4.5.0",
47
47
  "@teambit/harmony": "0.4.6",
48
48
  "@teambit/bit-error": "0.0.404",
49
+ "@teambit/preview.cli.dev-server-events-listener": "0.0.1",
49
50
  "@teambit/webpack.modules.config-mutator": "0.0.169",
50
- "@teambit/bundler": "1.0.461",
51
- "@teambit/logger": "0.0.1131",
52
- "@teambit/cli": "0.0.1038",
53
- "@teambit/pubsub": "1.0.461",
54
- "@teambit/workspace": "1.0.461",
51
+ "@teambit/bundler": "1.0.463",
52
+ "@teambit/logger": "0.0.1133",
53
+ "@teambit/cli": "0.0.1040",
54
+ "@teambit/pubsub": "1.0.463",
55
+ "@teambit/workspace": "1.0.463",
55
56
  "@teambit/toolbox.path.path": "0.0.4",
56
57
  "@teambit/webpack.modules.generate-expose-loaders": "0.0.17",
57
58
  "@teambit/webpack.modules.generate-externals": "0.0.17",
@@ -1,6 +1,10 @@
1
1
  import type { Compiler, Stats } from 'webpack';
2
- import { WebpackCompilationDoneEvent, WebpackCompilationStartedEvent } from '../events';
3
- import { WebpackAspect } from '../webpack.aspect';
2
+
3
+ import { BundlerAspect } from '@teambit/bundler';
4
+ import {
5
+ DevServerCompilationStartedEvent,
6
+ DevServerCompilationDoneEvent,
7
+ } from '@teambit/preview.cli.dev-server-events-listener';
4
8
 
5
9
  const PLUGIN_NAME = 'webpack-compiler-started-plugin';
6
10
 
@@ -20,14 +24,22 @@ export class WebpackBitReporterPlugin {
20
24
  apply(compiler: Compiler | any) {
21
25
  // "Called before a new compilation is created."
22
26
  compiler.hooks.compile.tap(PLUGIN_NAME, () => {
23
- const event = new WebpackCompilationStartedEvent(Date.now(), { devServerID: this.devServerID });
24
- this.pubsub.pub(WebpackAspect.id, event);
27
+ const event = new DevServerCompilationStartedEvent(Date.now(), this.devServerID);
28
+ this.pubsub.pub(BundlerAspect.id, event);
25
29
  });
26
30
 
27
31
  // "Executed when the compilation has completed."
28
32
  compiler.hooks.done.tap(PLUGIN_NAME, (stats: Stats) => {
29
- const event = new WebpackCompilationDoneEvent(Date.now(), stats, this.devServerID);
30
- this.pubsub.pub(WebpackAspect.id, event);
33
+ const results = {
34
+ errors: stats.compilation.errors,
35
+ warnings: stats.compilation.warnings,
36
+ compiling: false,
37
+ };
38
+ const event = new DevServerCompilationDoneEvent(Date.now(), this.devServerID, results);
39
+ this.pubsub.pub(BundlerAspect.id, event);
31
40
  });
32
41
  }
42
+
43
+ // flag to indicate whether the plugin uses the dev server events or the legacy webpack events
44
+ static readonly USE_DEV_SERVER_EVENTS = true;
33
45
  }