@teambit/react 0.0.1016 → 0.0.1018

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.
Files changed (24) hide show
  1. package/apps/web/webpack/webpack.app.ssr.config.ts +2 -2
  2. package/artifacts/__bit_junit.xml +1 -1
  3. package/artifacts/env-template/public/{700.b8d3d8904a6e12b433d2.js → 458.842dc28fd51f0795dd59.js} +2 -2
  4. package/artifacts/env-template/public/assets-manifest.json +10 -10
  5. package/artifacts/env-template/public/{compositions.0a7116fff6bc7658c7f9.js → compositions.9be298bfb36a8c011a61.js} +1 -1
  6. package/artifacts/env-template/public/compositions.html +1 -1
  7. package/artifacts/env-template/public/overview.1889456f51cd5635f51d.js +5 -0
  8. package/artifacts/env-template/public/overview.html +1 -1
  9. package/artifacts/env-template/public/{peers.776b07e19db0ed692ec7.js → peers.543f0055d422e32259eb.js} +1 -1
  10. package/artifacts/env-template/public/{preview-root.1e30cfd09e046c5d83b3.js → preview-root.c7b0efffaf9fa036b2b6.js} +1 -1
  11. package/artifacts/preview/teambit_react_react-preview.js +1 -1
  12. package/artifacts/schema.json +35 -35
  13. package/dist/apps/web/webpack/webpack.app.ssr.config.js +2 -2
  14. package/dist/apps/web/webpack/webpack.app.ssr.config.js.map +1 -1
  15. package/dist/{preview-1678505797420.js → preview-1678982624699.js} +2 -2
  16. package/dist/webpack/webpack.config.base.js +1 -1
  17. package/dist/webpack/webpack.config.base.js.map +1 -1
  18. package/package-tar/teambit-react-0.0.1018.tgz +0 -0
  19. package/package.json +30 -30
  20. package/webpack/webpack.config.base.ts +1 -1
  21. package/artifacts/env-template/public/overview.946f01897a5f053ed78d.js +0 -5
  22. package/package-tar/teambit-react-0.0.1016.tgz +0 -0
  23. /package/{compositions-1678505797420.js → compositions-1678982624699.js} +0 -0
  24. /package/{overview-1678505797420.js → overview-1678982624699.js} +0 -0
@@ -2353,7 +2353,7 @@
2353
2353
  "componentId": {
2354
2354
  "scope": "teambit.react",
2355
2355
  "name": "react",
2356
- "version": "0.0.1016"
2356
+ "version": "0.0.1018"
2357
2357
  }
2358
2358
  }
2359
2359
  }
@@ -2539,7 +2539,7 @@
2539
2539
  "componentId": {
2540
2540
  "scope": "teambit.react",
2541
2541
  "name": "react",
2542
- "version": "0.0.1016"
2542
+ "version": "0.0.1018"
2543
2543
  }
2544
2544
  }
2545
2545
  },
@@ -2563,7 +2563,7 @@
2563
2563
  "componentId": {
2564
2564
  "scope": "teambit.react",
2565
2565
  "name": "react",
2566
- "version": "0.0.1016"
2566
+ "version": "0.0.1018"
2567
2567
  }
2568
2568
  }
2569
2569
  },
@@ -2587,7 +2587,7 @@
2587
2587
  "componentId": {
2588
2588
  "scope": "teambit.react",
2589
2589
  "name": "react",
2590
- "version": "0.0.1016"
2590
+ "version": "0.0.1018"
2591
2591
  }
2592
2592
  }
2593
2593
  },
@@ -2611,7 +2611,7 @@
2611
2611
  "componentId": {
2612
2612
  "scope": "teambit.react",
2613
2613
  "name": "react",
2614
- "version": "0.0.1016"
2614
+ "version": "0.0.1018"
2615
2615
  }
2616
2616
  }
2617
2617
  },
@@ -2635,7 +2635,7 @@
2635
2635
  "componentId": {
2636
2636
  "scope": "teambit.react",
2637
2637
  "name": "react",
2638
- "version": "0.0.1016"
2638
+ "version": "0.0.1018"
2639
2639
  }
2640
2640
  }
2641
2641
  },
@@ -2659,7 +2659,7 @@
2659
2659
  "componentId": {
2660
2660
  "scope": "teambit.react",
2661
2661
  "name": "react",
2662
- "version": "0.0.1016"
2662
+ "version": "0.0.1018"
2663
2663
  }
2664
2664
  }
2665
2665
  },
@@ -2683,7 +2683,7 @@
2683
2683
  "componentId": {
2684
2684
  "scope": "teambit.react",
2685
2685
  "name": "react",
2686
- "version": "0.0.1016"
2686
+ "version": "0.0.1018"
2687
2687
  }
2688
2688
  }
2689
2689
  },
@@ -2707,7 +2707,7 @@
2707
2707
  "componentId": {
2708
2708
  "scope": "teambit.react",
2709
2709
  "name": "react",
2710
- "version": "0.0.1016"
2710
+ "version": "0.0.1018"
2711
2711
  }
2712
2712
  }
2713
2713
  }
@@ -3662,7 +3662,7 @@
3662
3662
  "componentId": {
3663
3663
  "scope": "teambit.compilation",
3664
3664
  "name": "compiler",
3665
- "version": "0.0.1016"
3665
+ "version": "0.0.1018"
3666
3666
  }
3667
3667
  },
3668
3668
  "doc": {
@@ -3783,7 +3783,7 @@
3783
3783
  "componentId": {
3784
3784
  "scope": "teambit.compilation",
3785
3785
  "name": "compiler",
3786
- "version": "0.0.1016"
3786
+ "version": "0.0.1018"
3787
3787
  }
3788
3788
  },
3789
3789
  "doc": {
@@ -4050,7 +4050,7 @@
4050
4050
  "componentId": {
4051
4051
  "scope": "teambit.compilation",
4052
4052
  "name": "compiler",
4053
- "version": "0.0.1016"
4053
+ "version": "0.0.1018"
4054
4054
  }
4055
4055
  },
4056
4056
  "doc": {
@@ -4180,7 +4180,7 @@
4180
4180
  "componentId": {
4181
4181
  "scope": "teambit.compilation",
4182
4182
  "name": "compiler",
4183
- "version": "0.0.1016"
4183
+ "version": "0.0.1018"
4184
4184
  }
4185
4185
  }
4186
4186
  },
@@ -5501,7 +5501,7 @@
5501
5501
  "componentId": {
5502
5502
  "scope": "teambit.compilation",
5503
5503
  "name": "compiler",
5504
- "version": "0.0.1016"
5504
+ "version": "0.0.1018"
5505
5505
  }
5506
5506
  },
5507
5507
  "doc": {
@@ -5598,7 +5598,7 @@
5598
5598
  "componentId": {
5599
5599
  "scope": "teambit.compilation",
5600
5600
  "name": "compiler",
5601
- "version": "0.0.1016"
5601
+ "version": "0.0.1018"
5602
5602
  }
5603
5603
  },
5604
5604
  "doc": {
@@ -5718,7 +5718,7 @@
5718
5718
  "componentId": {
5719
5719
  "scope": "teambit.compilation",
5720
5720
  "name": "compiler",
5721
- "version": "0.0.1016"
5721
+ "version": "0.0.1018"
5722
5722
  }
5723
5723
  },
5724
5724
  "doc": {
@@ -5815,7 +5815,7 @@
5815
5815
  "componentId": {
5816
5816
  "scope": "teambit.compilation",
5817
5817
  "name": "compiler",
5818
- "version": "0.0.1016"
5818
+ "version": "0.0.1018"
5819
5819
  }
5820
5820
  },
5821
5821
  "doc": {
@@ -9530,7 +9530,7 @@
9530
9530
  "componentId": {
9531
9531
  "scope": "teambit.react",
9532
9532
  "name": "react",
9533
- "version": "0.0.1016"
9533
+ "version": "0.0.1018"
9534
9534
  }
9535
9535
  }
9536
9536
  }
@@ -9747,7 +9747,7 @@
9747
9747
  "componentId": {
9748
9748
  "scope": "teambit.react",
9749
9749
  "name": "react",
9750
- "version": "0.0.1016"
9750
+ "version": "0.0.1018"
9751
9751
  }
9752
9752
  }
9753
9753
  },
@@ -9771,7 +9771,7 @@
9771
9771
  "componentId": {
9772
9772
  "scope": "teambit.react",
9773
9773
  "name": "react",
9774
- "version": "0.0.1016"
9774
+ "version": "0.0.1018"
9775
9775
  }
9776
9776
  }
9777
9777
  },
@@ -9795,7 +9795,7 @@
9795
9795
  "componentId": {
9796
9796
  "scope": "teambit.react",
9797
9797
  "name": "react",
9798
- "version": "0.0.1016"
9798
+ "version": "0.0.1018"
9799
9799
  }
9800
9800
  }
9801
9801
  },
@@ -9819,7 +9819,7 @@
9819
9819
  "componentId": {
9820
9820
  "scope": "teambit.react",
9821
9821
  "name": "react",
9822
- "version": "0.0.1016"
9822
+ "version": "0.0.1018"
9823
9823
  }
9824
9824
  }
9825
9825
  },
@@ -9843,7 +9843,7 @@
9843
9843
  "componentId": {
9844
9844
  "scope": "teambit.react",
9845
9845
  "name": "react",
9846
- "version": "0.0.1016"
9846
+ "version": "0.0.1018"
9847
9847
  }
9848
9848
  }
9849
9849
  },
@@ -9867,7 +9867,7 @@
9867
9867
  "componentId": {
9868
9868
  "scope": "teambit.react",
9869
9869
  "name": "react",
9870
- "version": "0.0.1016"
9870
+ "version": "0.0.1018"
9871
9871
  }
9872
9872
  }
9873
9873
  },
@@ -9891,7 +9891,7 @@
9891
9891
  "componentId": {
9892
9892
  "scope": "teambit.react",
9893
9893
  "name": "react",
9894
- "version": "0.0.1016"
9894
+ "version": "0.0.1018"
9895
9895
  }
9896
9896
  }
9897
9897
  },
@@ -9915,7 +9915,7 @@
9915
9915
  "componentId": {
9916
9916
  "scope": "teambit.react",
9917
9917
  "name": "react",
9918
- "version": "0.0.1016"
9918
+ "version": "0.0.1018"
9919
9919
  }
9920
9920
  }
9921
9921
  }
@@ -10870,7 +10870,7 @@
10870
10870
  "componentId": {
10871
10871
  "scope": "teambit.compilation",
10872
10872
  "name": "compiler",
10873
- "version": "0.0.1016"
10873
+ "version": "0.0.1018"
10874
10874
  }
10875
10875
  },
10876
10876
  "doc": {
@@ -10991,7 +10991,7 @@
10991
10991
  "componentId": {
10992
10992
  "scope": "teambit.compilation",
10993
10993
  "name": "compiler",
10994
- "version": "0.0.1016"
10994
+ "version": "0.0.1018"
10995
10995
  }
10996
10996
  },
10997
10997
  "doc": {
@@ -11258,7 +11258,7 @@
11258
11258
  "componentId": {
11259
11259
  "scope": "teambit.compilation",
11260
11260
  "name": "compiler",
11261
- "version": "0.0.1016"
11261
+ "version": "0.0.1018"
11262
11262
  }
11263
11263
  },
11264
11264
  "doc": {
@@ -11388,7 +11388,7 @@
11388
11388
  "componentId": {
11389
11389
  "scope": "teambit.compilation",
11390
11390
  "name": "compiler",
11391
- "version": "0.0.1016"
11391
+ "version": "0.0.1018"
11392
11392
  }
11393
11393
  }
11394
11394
  },
@@ -12709,7 +12709,7 @@
12709
12709
  "componentId": {
12710
12710
  "scope": "teambit.compilation",
12711
12711
  "name": "compiler",
12712
- "version": "0.0.1016"
12712
+ "version": "0.0.1018"
12713
12713
  }
12714
12714
  },
12715
12715
  "doc": {
@@ -12806,7 +12806,7 @@
12806
12806
  "componentId": {
12807
12807
  "scope": "teambit.compilation",
12808
12808
  "name": "compiler",
12809
- "version": "0.0.1016"
12809
+ "version": "0.0.1018"
12810
12810
  }
12811
12811
  },
12812
12812
  "doc": {
@@ -12926,7 +12926,7 @@
12926
12926
  "componentId": {
12927
12927
  "scope": "teambit.compilation",
12928
12928
  "name": "compiler",
12929
- "version": "0.0.1016"
12929
+ "version": "0.0.1018"
12930
12930
  }
12931
12931
  },
12932
12932
  "doc": {
@@ -13023,7 +13023,7 @@
13023
13023
  "componentId": {
13024
13024
  "scope": "teambit.compilation",
13025
13025
  "name": "compiler",
13026
- "version": "0.0.1016"
13026
+ "version": "0.0.1018"
13027
13027
  }
13028
13028
  },
13029
13029
  "doc": {
@@ -14679,7 +14679,7 @@
14679
14679
  "componentId": {
14680
14680
  "scope": "teambit.react",
14681
14681
  "name": "react",
14682
- "version": "0.0.1016"
14682
+ "version": "0.0.1018"
14683
14683
  },
14684
14684
  "taggedModuleExports": []
14685
14685
  }
@@ -44,7 +44,7 @@ function clientConfig() {
44
44
  function ssrConfig() {
45
45
  return {
46
46
  target: 'node',
47
- devtool: 'eval-cheap-source-map',
47
+ devtool: 'eval-cheap-module-source-map',
48
48
  output: {
49
49
  libraryTarget: 'commonjs',
50
50
  filename: SSR_ENTRY_FILE
@@ -67,7 +67,7 @@ function ssrBuildConfig({
67
67
  }) {
68
68
  return {
69
69
  target: 'node',
70
- devtool: 'eval-cheap-source-map',
70
+ devtool: 'eval-cheap-module-source-map',
71
71
  output: {
72
72
  path: outputPath,
73
73
  publicPath: `/`,
@@ -1 +1 @@
1
- {"version":3,"names":["OUTPUT_FOLDER","SSR_ENTRY_FILE","PUBLIC_PATH","Targets","calcOutputPath","appName","target","join","clientConfig","output","publicPath","filename","ssrConfig","devtool","libraryTarget","buildConfig","outputPath","path","ssrBuildConfig"],"sources":["webpack.app.ssr.config.ts"],"sourcesContent":["import { join } from 'path';\nimport type { Configuration } from 'webpack';\n\nconst OUTPUT_FOLDER = 'public/bit-apps';\nexport const SSR_ENTRY_FILE = 'index.js';\n/** _external_ base url for static files. (is not a folder)\n * @example\n * \"http://localhost:3000/public/main.88a88d47d86aaabc0230.js\"\n */\nexport const PUBLIC_PATH = '/public';\n\nenum Targets {\n ssr = 'ssr',\n browser = 'browser',\n}\n\nexport function calcOutputPath(appName: string, target: Targets | keyof typeof Targets) {\n return join(OUTPUT_FOLDER, appName, target);\n}\n\nexport function clientConfig(): Configuration {\n return {\n output: { publicPath: PUBLIC_PATH, filename: '[name].[chunkhash].js' },\n };\n}\n\nexport function ssrConfig(): Configuration {\n return {\n target: 'node',\n devtool: 'eval-cheap-source-map',\n\n output: {\n libraryTarget: 'commonjs',\n filename: SSR_ENTRY_FILE,\n },\n };\n}\n\nexport function buildConfig({ outputPath }: { outputPath: string }): Configuration {\n return {\n output: {\n path: outputPath,\n publicPath: `/`,\n filename: '[name].[chunkhash].js',\n },\n };\n}\n\nexport function ssrBuildConfig({ outputPath }: { outputPath: string }): Configuration {\n return {\n target: 'node',\n devtool: 'eval-cheap-source-map',\n\n output: {\n path: outputPath,\n publicPath: `/`,\n libraryTarget: 'commonjs',\n filename: 'index.js',\n },\n };\n}\n"],"mappings":";;;;;;;;;;;AAAA;EAAA;EAAA;IAAA;EAAA;EAAA;AAAA;AAGA,MAAMA,aAAa,GAAG,iBAAiB;AAChC,MAAMC,cAAc,GAAG,UAAU;AACxC;AACA;AACA;AACA;AAHA;AAIO,MAAMC,WAAW,GAAG,SAAS;AAAC;AAAA,IAEhCC,OAAO;AAAA,WAAPA,OAAO;EAAPA,OAAO;EAAPA,OAAO;AAAA,GAAPA,OAAO,KAAPA,OAAO;AAKL,SAASC,cAAc,CAACC,OAAe,EAAEC,MAAsC,EAAE;EACtF,OAAO,IAAAC,YAAI,EAACP,aAAa,EAAEK,OAAO,EAAEC,MAAM,CAAC;AAC7C;AAEO,SAASE,YAAY,GAAkB;EAC5C,OAAO;IACLC,MAAM,EAAE;MAAEC,UAAU,EAAER,WAAW;MAAES,QAAQ,EAAE;IAAwB;EACvE,CAAC;AACH;AAEO,SAASC,SAAS,GAAkB;EACzC,OAAO;IACLN,MAAM,EAAE,MAAM;IACdO,OAAO,EAAE,uBAAuB;IAEhCJ,MAAM,EAAE;MACNK,aAAa,EAAE,UAAU;MACzBH,QAAQ,EAAEV;IACZ;EACF,CAAC;AACH;AAEO,SAASc,WAAW,CAAC;EAAEC;AAAmC,CAAC,EAAiB;EACjF,OAAO;IACLP,MAAM,EAAE;MACNQ,IAAI,EAAED,UAAU;MAChBN,UAAU,EAAG,GAAE;MACfC,QAAQ,EAAE;IACZ;EACF,CAAC;AACH;AAEO,SAASO,cAAc,CAAC;EAAEF;AAAmC,CAAC,EAAiB;EACpF,OAAO;IACLV,MAAM,EAAE,MAAM;IACdO,OAAO,EAAE,uBAAuB;IAEhCJ,MAAM,EAAE;MACNQ,IAAI,EAAED,UAAU;MAChBN,UAAU,EAAG,GAAE;MACfI,aAAa,EAAE,UAAU;MACzBH,QAAQ,EAAE;IACZ;EACF,CAAC;AACH"}
1
+ {"version":3,"names":["OUTPUT_FOLDER","SSR_ENTRY_FILE","PUBLIC_PATH","Targets","calcOutputPath","appName","target","join","clientConfig","output","publicPath","filename","ssrConfig","devtool","libraryTarget","buildConfig","outputPath","path","ssrBuildConfig"],"sources":["webpack.app.ssr.config.ts"],"sourcesContent":["import { join } from 'path';\nimport type { Configuration } from 'webpack';\n\nconst OUTPUT_FOLDER = 'public/bit-apps';\nexport const SSR_ENTRY_FILE = 'index.js';\n/** _external_ base url for static files. (is not a folder)\n * @example\n * \"http://localhost:3000/public/main.88a88d47d86aaabc0230.js\"\n */\nexport const PUBLIC_PATH = '/public';\n\nenum Targets {\n ssr = 'ssr',\n browser = 'browser',\n}\n\nexport function calcOutputPath(appName: string, target: Targets | keyof typeof Targets) {\n return join(OUTPUT_FOLDER, appName, target);\n}\n\nexport function clientConfig(): Configuration {\n return {\n output: { publicPath: PUBLIC_PATH, filename: '[name].[chunkhash].js' },\n };\n}\n\nexport function ssrConfig(): Configuration {\n return {\n target: 'node',\n devtool: 'eval-cheap-module-source-map',\n\n output: {\n libraryTarget: 'commonjs',\n filename: SSR_ENTRY_FILE,\n },\n };\n}\n\nexport function buildConfig({ outputPath }: { outputPath: string }): Configuration {\n return {\n output: {\n path: outputPath,\n publicPath: `/`,\n filename: '[name].[chunkhash].js',\n },\n };\n}\n\nexport function ssrBuildConfig({ outputPath }: { outputPath: string }): Configuration {\n return {\n target: 'node',\n devtool: 'eval-cheap-module-source-map',\n\n output: {\n path: outputPath,\n publicPath: `/`,\n libraryTarget: 'commonjs',\n filename: 'index.js',\n },\n };\n}\n"],"mappings":";;;;;;;;;;;AAAA;EAAA;EAAA;IAAA;EAAA;EAAA;AAAA;AAGA,MAAMA,aAAa,GAAG,iBAAiB;AAChC,MAAMC,cAAc,GAAG,UAAU;AACxC;AACA;AACA;AACA;AAHA;AAIO,MAAMC,WAAW,GAAG,SAAS;AAAC;AAAA,IAEhCC,OAAO;AAAA,WAAPA,OAAO;EAAPA,OAAO;EAAPA,OAAO;AAAA,GAAPA,OAAO,KAAPA,OAAO;AAKL,SAASC,cAAc,CAACC,OAAe,EAAEC,MAAsC,EAAE;EACtF,OAAO,IAAAC,YAAI,EAACP,aAAa,EAAEK,OAAO,EAAEC,MAAM,CAAC;AAC7C;AAEO,SAASE,YAAY,GAAkB;EAC5C,OAAO;IACLC,MAAM,EAAE;MAAEC,UAAU,EAAER,WAAW;MAAES,QAAQ,EAAE;IAAwB;EACvE,CAAC;AACH;AAEO,SAASC,SAAS,GAAkB;EACzC,OAAO;IACLN,MAAM,EAAE,MAAM;IACdO,OAAO,EAAE,8BAA8B;IAEvCJ,MAAM,EAAE;MACNK,aAAa,EAAE,UAAU;MACzBH,QAAQ,EAAEV;IACZ;EACF,CAAC;AACH;AAEO,SAASc,WAAW,CAAC;EAAEC;AAAmC,CAAC,EAAiB;EACjF,OAAO;IACLP,MAAM,EAAE;MACNQ,IAAI,EAAED,UAAU;MAChBN,UAAU,EAAG,GAAE;MACfC,QAAQ,EAAE;IACZ;EACF,CAAC;AACH;AAEO,SAASO,cAAc,CAAC;EAAEF;AAAmC,CAAC,EAAiB;EACpF,OAAO;IACLV,MAAM,EAAE,MAAM;IACdO,OAAO,EAAE,8BAA8B;IAEvCJ,MAAM,EAAE;MACNQ,IAAI,EAAED,UAAU;MAChBN,UAAU,EAAG,GAAE;MACfI,aAAa,EAAE,UAAU;MACzBH,QAAQ,EAAE;IACZ;EACF,CAAC;AACH"}
@@ -1,5 +1,5 @@
1
- import * as compositions_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad3d35bfc38b9cd90c0e05b598a5a55af/teambit.react_react@0.0.1016/dist/react.composition.js';
2
- import * as overview_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad3d35bfc38b9cd90c0e05b598a5a55af/teambit.react_react@0.0.1016/dist/react.docs.mdx';
1
+ import * as compositions_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad3d35bfc38b9cd90c0e05b598a5a55af/teambit.react_react@0.0.1018/dist/react.composition.js';
2
+ import * as overview_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad3d35bfc38b9cd90c0e05b598a5a55af/teambit.react_react@0.0.1018/dist/react.docs.mdx';
3
3
 
4
4
  export const compositions = [compositions_0];
5
5
  export const overview = [overview_0];
@@ -106,7 +106,7 @@ function _default(isEnvProduction = false) {
106
106
 
107
107
  return {
108
108
  // TODO: make the dev tool according to shouldUseSourceMap and isEnvProduction
109
- // devtool: 'eval-cheap-source-map',
109
+ // devtool: 'eval-cheap-module-source-map',
110
110
  resolve: {
111
111
  // These are the reasonable defaults supported by the Node ecosystem.
112
112
  // We also include JSX as a common component filename extension to support
@@ -1 +1 @@
1
- {"version":3,"names":["styleLoaderPath","require","resolve","moduleFileExtensions","shouldUseSourceMap","process","env","GENERATE_SOURCEMAP","imageInlineSizeLimit","parseInt","IMAGE_INLINE_SIZE_LIMIT","isEnvProduction","isEnvProductionProfile","argv","includes","baseStyleLoadersOptions","injectingLoader","MiniCssExtractPlugin","loader","cssLoaderPath","postCssLoaderPath","postCssConfig","extensions","map","ext","alias","module","strictExportPresence","rules","test","fullySpecified","oneOf","stylesRegexps","cssNoModulesRegex","use","generateStyleLoaders","merge","cssLoaderOpts","importLoaders","sourceMap","sideEffects","exclude","options","babelrc","configFile","customize","presets","cacheDirectory","cacheCompression","compact","cssModuleRegex","modules","getLocalIdent","getCSSModuleLocalIdent","sassNoModuleRegex","preProcessOptions","resolveUrlLoaderPath","preProcessorPath","sassModuleRegex","lessNoModuleRegex","lessModuleRegex","type","parser","dataUrlCondition","maxSize","generator","filename","dependency","not","titleProp","ref","plugins","chunkFilename","IgnorePlugin","resourceRegExp","RegExp","sep","contextRegExp","filter","Boolean","performance"],"sources":["webpack.config.base.ts"],"sourcesContent":["import { merge } from 'lodash';\nimport { sep } from 'path';\nimport 'style-loader';\nimport MiniCssExtractPlugin from 'mini-css-extract-plugin';\nimport getCSSModuleLocalIdent from 'react-dev-utils/getCSSModuleLocalIdent';\nimport { Configuration, IgnorePlugin } from 'webpack';\nimport * as stylesRegexps from '@teambit/webpack.modules.style-regexps';\nimport { generateStyleLoaders } from '@teambit/webpack.modules.generate-style-loaders';\nimport { postCssConfig } from './postcss.config';\n// Make sure the bit-react-transformer is a dependency\n// TODO: remove it once we can set policy from component to component then set it via the component.json\nimport '@teambit/react.babel.bit-react-transformer';\n// Make sure the mdx-loader is a dependency\nimport '@teambit/mdx.modules.mdx-loader';\n\nconst styleLoaderPath = require.resolve('style-loader');\n\nconst moduleFileExtensions = [\n 'web.mjs',\n 'mjs',\n 'web.js',\n 'js',\n 'cjs',\n 'web.ts',\n 'ts',\n 'web.tsx',\n 'tsx',\n 'json',\n 'web.jsx',\n 'jsx',\n 'mdx',\n 'md',\n];\n\n// Source maps are resource heavy and can cause out of memory issue for large source files.\nconst shouldUseSourceMap = process.env.GENERATE_SOURCEMAP !== 'false';\n\nconst imageInlineSizeLimit = parseInt(process.env.IMAGE_INLINE_SIZE_LIMIT || '10000');\n\n// This is the production and development configuration.\n// It is focused on developer experience, fast rebuilds, and a minimal bundle.\n// eslint-disable-next-line complexity\nexport default function (isEnvProduction = false): Configuration {\n // Variable used for enabling profiling in Production\n // passed into alias object. Uses a flag if passed into the build command\n const isEnvProductionProfile = process.argv.includes('--profile');\n\n const baseStyleLoadersOptions = {\n injectingLoader: isEnvProduction ? MiniCssExtractPlugin.loader : styleLoaderPath,\n cssLoaderPath: require.resolve('css-loader'),\n postCssLoaderPath: require.resolve('postcss-loader'),\n postCssConfig,\n };\n\n // We will provide `paths.publicUrlOrPath` to our app\n // as %PUBLIC_URL% in `index.html` and `process.env.PUBLIC_URL` in JavaScript.\n // Omit trailing slash as %PUBLIC_URL%/xyz looks better than %PUBLIC_URL%xyz.\n // Get environment variables to inject into our app.\n // const env = getClientEnvironment(publicUrlOrPath.slice(0, -1));\n\n return {\n // TODO: make the dev tool according to shouldUseSourceMap and isEnvProduction\n // devtool: 'eval-cheap-source-map',\n resolve: {\n // These are the reasonable defaults supported by the Node ecosystem.\n // We also include JSX as a common component filename extension to support\n // some tools, although we do not recommend using it, see:\n // https://github.com/facebook/create-react-app/issues/290\n // `web` extension prefixes have been added for better support\n // for React Native Web.\n extensions: moduleFileExtensions.map((ext) => `.${ext}`),\n\n alias: {\n 'react/jsx-dev-runtime': require.resolve('react/jsx-dev-runtime.js'),\n 'react/jsx-runtime': require.resolve('react/jsx-runtime.js'),\n 'react-dom/server': require.resolve('react-dom/server'),\n // Allows for better profiling with ReactDevTools\n ...(isEnvProductionProfile && {\n 'react-dom$': 'react-dom/profiling',\n 'scheduler/tracing': 'scheduler/tracing-profiling',\n }),\n },\n },\n module: {\n strictExportPresence: true,\n rules: [\n {\n test: /\\.m?js/,\n resolve: {\n fullySpecified: false,\n },\n },\n {\n // \"oneOf\" will traverse all following loaders until one will\n // match the requirements. When no loader matches it will fall\n // back to the \"file\" loader at the end of the loader list.\n oneOf: [\n // \"postcss\" loader applies autoprefixer to our CSS.\n // \"css\" loader resolves paths in CSS and adds assets as dependencies.\n // \"style\" loader turns CSS into JS modules that inject <style> tags.\n // In production, we use MiniCSSExtractPlugin to extract that CSS\n // to a file, but in development \"style\" loader enables hot editing\n // of CSS.\n // By default we support CSS Modules with the extension .module.css\n {\n test: stylesRegexps.cssNoModulesRegex,\n use: generateStyleLoaders(\n merge({}, baseStyleLoadersOptions, {\n cssLoaderOpts: {\n importLoaders: 1,\n sourceMap: isEnvProduction || shouldUseSourceMap,\n },\n })\n ),\n // Don't consider CSS imports dead code even if the\n // containing package claims to have no side effects.\n // Remove this when webpack adds a warning or an error for this.\n // See https://github.com/webpack/webpack/issues/6571\n sideEffects: true,\n },\n\n // Process application JS with Babel.\n // The preset includes JSX, Flow, TypeScript, and some ESnext features.\n {\n test: /\\.(js|mjs|jsx|ts|tsx)$/,\n exclude: [/node_modules/, /\\/dist\\//],\n // consider: limit loader to files only in a capsule that has bitid in package.json\n // descriptionData: { componentId: ComponentID.isValidObject },\n // // or\n // include: capsulePaths\n loader: require.resolve('babel-loader'),\n options: {\n babelrc: false,\n configFile: false,\n customize: require.resolve('babel-preset-react-app/webpack-overrides'),\n presets: [require.resolve('@babel/preset-react')],\n // This is a feature of `babel-loader` for webpack (not Babel itself).\n // It enables caching results in ./node_modules/.cache/babel-loader/\n // directory for faster rebuilds.\n cacheDirectory: true,\n // See #6846 for context on why cacheCompression is disabled\n cacheCompression: false,\n compact: isEnvProduction,\n },\n },\n // Process any JS outside of the app with Babel.\n // Unlike the application JS, we only compile the standard ES features.\n // Probably not needed in our use case\n // {\n // test: /\\.(js|mjs)$/,\n // exclude: /@babel(?:\\/|\\\\{1,2})runtime/,\n // loader: require.resolve('babel-loader'),\n // options: {\n // babelrc: false,\n // configFile: false,\n // compact: false,\n // presets: [[require.resolve('babel-preset-react-app/dependencies'), { helpers: true }]],\n // cacheDirectory: true,\n // // See #6846 for context on why cacheCompression is disabled\n // cacheCompression: false,\n\n // // Babel sourcemaps are needed for debugging into node_modules\n // // code. Without the options below, debuggers like VSCode\n // // show incorrect code and set breakpoints on the wrong lines.\n // sourceMaps: shouldUseSourceMap,\n // inputSourceMap: shouldUseSourceMap,\n // },\n // },\n // MDX support (move to the mdx aspect and extend from there)\n {\n test: /\\.mdx?$/,\n exclude: [/node_modules/],\n use: [\n {\n loader: require.resolve('babel-loader'),\n options: {\n babelrc: false,\n configFile: false,\n presets: [require.resolve('@babel/preset-react'), require.resolve('@babel/preset-env')],\n },\n },\n {\n loader: require.resolve('@teambit/mdx.modules.mdx-loader'),\n },\n ],\n },\n // Adds support for CSS Modules (https://github.com/css-modules/css-modules)\n // using the extension .module.css\n {\n test: stylesRegexps.cssModuleRegex,\n use: generateStyleLoaders(\n merge({}, baseStyleLoadersOptions, {\n cssLoaderOpts: {\n importLoaders: 1,\n sourceMap: isEnvProduction || shouldUseSourceMap,\n modules: {\n getLocalIdent: getCSSModuleLocalIdent,\n },\n },\n shouldUseSourceMap: isEnvProduction || shouldUseSourceMap,\n })\n ),\n },\n // Opt-in support for SASS (using .scss or .sass extensions).\n // By default we support SASS Modules with the\n // extensions .module.scss or .module.sass\n {\n test: stylesRegexps.sassNoModuleRegex,\n use: generateStyleLoaders(\n merge({}, baseStyleLoadersOptions, {\n cssLoaderOpts: {\n importLoaders: 3,\n sourceMap: isEnvProduction || shouldUseSourceMap,\n },\n shouldUseSourceMap: isEnvProduction || shouldUseSourceMap,\n preProcessOptions: {\n resolveUrlLoaderPath: require.resolve('resolve-url-loader'),\n preProcessorPath: require.resolve('sass-loader'),\n },\n })\n ),\n // Don't consider CSS imports dead code even if the\n // containing package claims to have no side effects.\n // Remove this when webpack adds a warning or an error for this.\n // See https://github.com/webpack/webpack/issues/6571\n sideEffects: true,\n },\n // Adds support for CSS Modules, but using SASS\n // using the extension .module.scss or .module.sass\n {\n test: stylesRegexps.sassModuleRegex,\n use: generateStyleLoaders(\n merge({}, baseStyleLoadersOptions, {\n cssLoaderOpts: {\n importLoaders: 3,\n sourceMap: isEnvProduction || shouldUseSourceMap,\n modules: {\n getLocalIdent: getCSSModuleLocalIdent,\n },\n },\n shouldUseSourceMap: isEnvProduction || shouldUseSourceMap,\n preProcessOptions: {\n resolveUrlLoaderPath: require.resolve('resolve-url-loader'),\n preProcessorPath: require.resolve('sass-loader'),\n },\n })\n ),\n },\n {\n test: stylesRegexps.lessNoModuleRegex,\n use: generateStyleLoaders(\n merge({}, baseStyleLoadersOptions, {\n cssLoaderOpts: {\n importLoaders: 1,\n sourceMap: isEnvProduction || shouldUseSourceMap,\n },\n shouldUseSourceMap: isEnvProduction || shouldUseSourceMap,\n preProcessOptions: {\n resolveUrlLoaderPath: require.resolve('resolve-url-loader'),\n preProcessorPath: require.resolve('less-loader'),\n },\n })\n ),\n // Don't consider CSS imports dead code even if the\n // containing package claims to have no side effects.\n // Remove this when webpack adds a warning or an error for this.\n // See https://github.com/webpack/webpack/issues/6571\n sideEffects: true,\n },\n {\n test: stylesRegexps.lessModuleRegex,\n use: generateStyleLoaders(\n merge({}, baseStyleLoadersOptions, {\n cssLoaderOpts: {\n importLoaders: 1,\n sourceMap: isEnvProduction || shouldUseSourceMap,\n modules: {\n getLocalIdent: getCSSModuleLocalIdent,\n },\n },\n shouldUseSourceMap: isEnvProduction || shouldUseSourceMap,\n preProcessOptions: {\n resolveUrlLoaderPath: require.resolve('resolve-url-loader'),\n preProcessorPath: require.resolve('less-loader'),\n },\n })\n ),\n },\n {\n test: [/\\.bmp$/, /\\.gif$/, /\\.jpe?g$/, /\\.png$/],\n type: 'asset',\n parser: {\n dataUrlCondition: {\n maxSize: imageInlineSizeLimit,\n },\n },\n generator: {\n filename: 'static/images/[hash][ext][query]',\n },\n },\n {\n // loads svg as both inlineUrl and react component, like:\n // import starUrl, { ReactComponent as StarIcon } from './star.svg';\n // (remove when there is native support for both opitons from webpack5 / svgr)\n test: /\\.svg$/,\n oneOf: [\n {\n dependency: { not: ['url'] }, // exclude new URL calls\n use: [\n {\n loader: require.resolve('@svgr/webpack'),\n options: { titleProp: true, ref: true },\n },\n require.resolve('new-url-loader'),\n ],\n },\n {\n type: 'asset', // export a data URI or emit a separate file\n },\n ],\n },\n {\n test: /\\.(woff(2)?|ttf|eot|svg)(\\?v=\\d+\\.\\d+\\.\\d+)?$/,\n type: 'asset',\n generator: {\n filename: 'static/fonts/[hash][ext][query]',\n },\n },\n\n // \"file\" loader makes sure those assets get served by WebpackDevServer.\n // When you `import` an asset, you get its (virtual) filename.\n // In production, they would get copied to the `build` folder.\n // This loader doesn't use a \"test\" so it will catch all modules\n // that fall through the other loaders.\n {\n // Exclude `js` files to keep \"css\" loader working as it injects\n // its runtime that would otherwise be processed through \"file\" loader.\n // Also exclude `html` and `json` extensions so they get processed\n // by webpacks internal loaders.\n exclude: [/\\.(js|mjs|cjs|jsx|ts|tsx)$/, /\\.html$/, /\\.mdx?/, /\\.json$/, /\\.css$/],\n generator: {\n filename: 'static/[hash][ext][query]',\n },\n type: 'asset',\n },\n // ** STOP ** Are you adding a new loader?\n // Make sure to add the new loader(s) before the \"type:asset\" loader.\n ],\n },\n ],\n },\n // @ts-ignore\n plugins: [\n isEnvProduction &&\n new MiniCssExtractPlugin({\n // Options similar to the same options in webpackOptions.output\n // both options are optional\n filename: 'static/css/[name].[contenthash:8].css',\n chunkFilename: 'static/css/[name].[contenthash:8].chunk.css',\n }),\n // Moment.js is an extremely popular library that bundles large locale files\n // by default due to how webpack interprets its code. This is a practical\n // solution that requires the user to opt into importing specific locales.\n // https://github.com/jmblog/how-to-optimize-momentjs-with-webpack\n // You can remove this if you don't use Moment.js:\n new IgnorePlugin({\n resourceRegExp: new RegExp(`^\\\\.${sep}locale$`),\n contextRegExp: /moment$/,\n }),\n ].filter(Boolean),\n // Turn off performance processing because we utilize\n // our own hints via the FileSizeReporter\n performance: false,\n };\n}\n"],"mappings":";;;;;;;;;;;;;;;;AAAA;EAAA;EAAA;IAAA;EAAA;EAAA;AAAA;AACA;EAAA;EAAA;IAAA;EAAA;EAAA;AAAA;AACA;AACA;EAAA;EAAA;IAAA;EAAA;EAAA;AAAA;AACA;EAAA;EAAA;IAAA;EAAA;EAAA;AAAA;AACA;EAAA;EAAA;IAAA;EAAA;EAAA;AAAA;AACA;EAAA;EAAA;IAAA;EAAA;EAAA;AAAA;AACA;EA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ACAzB,OAAO,EAAE,CAAC,4BAA4B,EAAE,SAAS,EAAE,QAAQ,EAAE,SAAS,EAAE,QAAQ,CAAC;UACjFwB,SAAS,EAAE;YACTC,QAAQ,EAAE;UACZ,CAAC;UACDL,IAAI,EAAE;QACR;QACA;QACA;QAAA;MAEJ,CAAC;IAEL,CAAC;;IACD;IACAU,OAAO,EAAE,CACP5D,eAAe,IACb,KAAIM,+BAAoB,EAAC;MACvB;MACA;MACAiD,QAAQ,EAAE,uCAAuC;MACjDM,aAAa,EAAE;IACjB,CAAC,CAAC;IACJ;IACA;IACA;IACA;IACA;IACA,KAAIC,uBAAY,EAAC;MACfC,cAAc,EAAE,IAAIC,MAAM,CAAE,OAAMC,WAAI,SAAQ,CAAC;MAC/CC,aAAa,EAAE;IACjB,CAAC,CAAC,CACH,CAACC,MAAM,CAACC,OAAO,CAAC;IACjB;IACA;IACAC,WAAW,EAAE;EACf,CAAC;AACH"}
1
+ {"version":3,"names":["styleLoaderPath","require","resolve","moduleFileExtensions","shouldUseSourceMap","process","env","GENERATE_SOURCEMAP","imageInlineSizeLimit","parseInt","IMAGE_INLINE_SIZE_LIMIT","isEnvProduction","isEnvProductionProfile","argv","includes","baseStyleLoadersOptions","injectingLoader","MiniCssExtractPlugin","loader","cssLoaderPath","postCssLoaderPath","postCssConfig","extensions","map","ext","alias","module","strictExportPresence","rules","test","fullySpecified","oneOf","stylesRegexps","cssNoModulesRegex","use","generateStyleLoaders","merge","cssLoaderOpts","importLoaders","sourceMap","sideEffects","exclude","options","babelrc","configFile","customize","presets","cacheDirectory","cacheCompression","compact","cssModuleRegex","modules","getLocalIdent","getCSSModuleLocalIdent","sassNoModuleRegex","preProcessOptions","resolveUrlLoaderPath","preProcessorPath","sassModuleRegex","lessNoModuleRegex","lessModuleRegex","type","parser","dataUrlCondition","maxSize","generator","filename","dependency","not","titleProp","ref","plugins","chunkFilename","IgnorePlugin","resourceRegExp","RegExp","sep","contextRegExp","filter","Boolean","performance"],"sources":["webpack.config.base.ts"],"sourcesContent":["import { merge } from 'lodash';\nimport { sep } from 'path';\nimport 'style-loader';\nimport MiniCssExtractPlugin from 'mini-css-extract-plugin';\nimport getCSSModuleLocalIdent from 'react-dev-utils/getCSSModuleLocalIdent';\nimport { Configuration, IgnorePlugin } from 'webpack';\nimport * as stylesRegexps from '@teambit/webpack.modules.style-regexps';\nimport { generateStyleLoaders } from '@teambit/webpack.modules.generate-style-loaders';\nimport { postCssConfig } from './postcss.config';\n// Make sure the bit-react-transformer is a dependency\n// TODO: remove it once we can set policy from component to component then set it via the component.json\nimport '@teambit/react.babel.bit-react-transformer';\n// Make sure the mdx-loader is a dependency\nimport '@teambit/mdx.modules.mdx-loader';\n\nconst styleLoaderPath = require.resolve('style-loader');\n\nconst moduleFileExtensions = [\n 'web.mjs',\n 'mjs',\n 'web.js',\n 'js',\n 'cjs',\n 'web.ts',\n 'ts',\n 'web.tsx',\n 'tsx',\n 'json',\n 'web.jsx',\n 'jsx',\n 'mdx',\n 'md',\n];\n\n// Source maps are resource heavy and can cause out of memory issue for large source files.\nconst shouldUseSourceMap = process.env.GENERATE_SOURCEMAP !== 'false';\n\nconst imageInlineSizeLimit = parseInt(process.env.IMAGE_INLINE_SIZE_LIMIT || '10000');\n\n// This is the production and development configuration.\n// It is focused on developer experience, fast rebuilds, and a minimal bundle.\n// eslint-disable-next-line complexity\nexport default function (isEnvProduction = false): Configuration {\n // Variable used for enabling profiling in Production\n // passed into alias object. Uses a flag if passed into the build command\n const isEnvProductionProfile = process.argv.includes('--profile');\n\n const baseStyleLoadersOptions = {\n injectingLoader: isEnvProduction ? MiniCssExtractPlugin.loader : styleLoaderPath,\n cssLoaderPath: require.resolve('css-loader'),\n postCssLoaderPath: require.resolve('postcss-loader'),\n postCssConfig,\n };\n\n // We will provide `paths.publicUrlOrPath` to our app\n // as %PUBLIC_URL% in `index.html` and `process.env.PUBLIC_URL` in JavaScript.\n // Omit trailing slash as %PUBLIC_URL%/xyz looks better than %PUBLIC_URL%xyz.\n // Get environment variables to inject into our app.\n // const env = getClientEnvironment(publicUrlOrPath.slice(0, -1));\n\n return {\n // TODO: make the dev tool according to shouldUseSourceMap and isEnvProduction\n // devtool: 'eval-cheap-module-source-map',\n resolve: {\n // These are the reasonable defaults supported by the Node ecosystem.\n // We also include JSX as a common component filename extension to support\n // some tools, although we do not recommend using it, see:\n // https://github.com/facebook/create-react-app/issues/290\n // `web` extension prefixes have been added for better support\n // for React Native Web.\n extensions: moduleFileExtensions.map((ext) => `.${ext}`),\n\n alias: {\n 'react/jsx-dev-runtime': require.resolve('react/jsx-dev-runtime.js'),\n 'react/jsx-runtime': require.resolve('react/jsx-runtime.js'),\n 'react-dom/server': require.resolve('react-dom/server'),\n // Allows for better profiling with ReactDevTools\n ...(isEnvProductionProfile && {\n 'react-dom$': 'react-dom/profiling',\n 'scheduler/tracing': 'scheduler/tracing-profiling',\n }),\n },\n },\n module: {\n strictExportPresence: true,\n rules: [\n {\n test: /\\.m?js/,\n resolve: {\n fullySpecified: false,\n },\n },\n {\n // \"oneOf\" will traverse all following loaders until one will\n // match the requirements. When no loader matches it will fall\n // back to the \"file\" loader at the end of the loader list.\n oneOf: [\n // \"postcss\" loader applies autoprefixer to our CSS.\n // \"css\" loader resolves paths in CSS and adds assets as dependencies.\n // \"style\" loader turns CSS into JS modules that inject <style> tags.\n // In production, we use MiniCSSExtractPlugin to extract that CSS\n // to a file, but in development \"style\" loader enables hot editing\n // of CSS.\n // By default we support CSS Modules with the extension .module.css\n {\n test: stylesRegexps.cssNoModulesRegex,\n use: generateStyleLoaders(\n merge({}, baseStyleLoadersOptions, {\n cssLoaderOpts: {\n importLoaders: 1,\n sourceMap: isEnvProduction || shouldUseSourceMap,\n },\n })\n ),\n // Don't consider CSS imports dead code even if the\n // containing package claims to have no side effects.\n // Remove this when webpack adds a warning or an error for this.\n // See https://github.com/webpack/webpack/issues/6571\n sideEffects: true,\n },\n\n // Process application JS with Babel.\n // The preset includes JSX, Flow, TypeScript, and some ESnext features.\n {\n test: /\\.(js|mjs|jsx|ts|tsx)$/,\n exclude: [/node_modules/, /\\/dist\\//],\n // consider: limit loader to files only in a capsule that has bitid in package.json\n // descriptionData: { componentId: ComponentID.isValidObject },\n // // or\n // include: capsulePaths\n loader: require.resolve('babel-loader'),\n options: {\n babelrc: false,\n configFile: false,\n customize: require.resolve('babel-preset-react-app/webpack-overrides'),\n presets: [require.resolve('@babel/preset-react')],\n // This is a feature of `babel-loader` for webpack (not Babel itself).\n // It enables caching results in ./node_modules/.cache/babel-loader/\n // directory for faster rebuilds.\n cacheDirectory: true,\n // See #6846 for context on why cacheCompression is disabled\n cacheCompression: false,\n compact: isEnvProduction,\n },\n },\n // Process any JS outside of the app with Babel.\n // Unlike the application JS, we only compile the standard ES features.\n // Probably not needed in our use case\n // {\n // test: /\\.(js|mjs)$/,\n // exclude: /@babel(?:\\/|\\\\{1,2})runtime/,\n // loader: require.resolve('babel-loader'),\n // options: {\n // babelrc: false,\n // configFile: false,\n // compact: false,\n // presets: [[require.resolve('babel-preset-react-app/dependencies'), { helpers: true }]],\n // cacheDirectory: true,\n // // See #6846 for context on why cacheCompression is disabled\n // cacheCompression: false,\n\n // // Babel sourcemaps are needed for debugging into node_modules\n // // code. Without the options below, debuggers like VSCode\n // // show incorrect code and set breakpoints on the wrong lines.\n // sourceMaps: shouldUseSourceMap,\n // inputSourceMap: shouldUseSourceMap,\n // },\n // },\n // MDX support (move to the mdx aspect and extend from there)\n {\n test: /\\.mdx?$/,\n exclude: [/node_modules/],\n use: [\n {\n loader: require.resolve('babel-loader'),\n options: {\n babelrc: false,\n configFile: false,\n presets: [require.resolve('@babel/preset-react'), require.resolve('@babel/preset-env')],\n },\n },\n {\n loader: require.resolve('@teambit/mdx.modules.mdx-loader'),\n },\n ],\n },\n // Adds support for CSS Modules (https://github.com/css-modules/css-modules)\n // using the extension .module.css\n {\n test: stylesRegexps.cssModuleRegex,\n use: generateStyleLoaders(\n merge({}, baseStyleLoadersOptions, {\n cssLoaderOpts: {\n importLoaders: 1,\n sourceMap: isEnvProduction || shouldUseSourceMap,\n modules: {\n getLocalIdent: getCSSModuleLocalIdent,\n },\n },\n shouldUseSourceMap: isEnvProduction || shouldUseSourceMap,\n })\n ),\n },\n // Opt-in support for SASS (using .scss or .sass extensions).\n // By default we support SASS Modules with the\n // extensions .module.scss or .module.sass\n {\n test: stylesRegexps.sassNoModuleRegex,\n use: generateStyleLoaders(\n merge({}, baseStyleLoadersOptions, {\n cssLoaderOpts: {\n importLoaders: 3,\n sourceMap: isEnvProduction || shouldUseSourceMap,\n },\n shouldUseSourceMap: isEnvProduction || shouldUseSourceMap,\n preProcessOptions: {\n resolveUrlLoaderPath: require.resolve('resolve-url-loader'),\n preProcessorPath: require.resolve('sass-loader'),\n },\n })\n ),\n // Don't consider CSS imports dead code even if the\n // containing package claims to have no side effects.\n // Remove this when webpack adds a warning or an error for this.\n // See https://github.com/webpack/webpack/issues/6571\n sideEffects: true,\n },\n // Adds support for CSS Modules, but using SASS\n // using the extension .module.scss or .module.sass\n {\n test: stylesRegexps.sassModuleRegex,\n use: generateStyleLoaders(\n merge({}, baseStyleLoadersOptions, {\n cssLoaderOpts: {\n importLoaders: 3,\n sourceMap: isEnvProduction || shouldUseSourceMap,\n modules: {\n getLocalIdent: getCSSModuleLocalIdent,\n },\n },\n shouldUseSourceMap: isEnvProduction || shouldUseSourceMap,\n preProcessOptions: {\n resolveUrlLoaderPath: require.resolve('resolve-url-loader'),\n preProcessorPath: require.resolve('sass-loader'),\n },\n })\n ),\n },\n {\n test: stylesRegexps.lessNoModuleRegex,\n use: generateStyleLoaders(\n merge({}, baseStyleLoadersOptions, {\n cssLoaderOpts: {\n importLoaders: 1,\n sourceMap: isEnvProduction || shouldUseSourceMap,\n },\n shouldUseSourceMap: isEnvProduction || shouldUseSourceMap,\n preProcessOptions: {\n resolveUrlLoaderPath: require.resolve('resolve-url-loader'),\n preProcessorPath: require.resolve('less-loader'),\n },\n })\n ),\n // Don't consider CSS imports dead code even if the\n // containing package claims to have no side effects.\n // Remove this when webpack adds a warning or an error for this.\n // See https://github.com/webpack/webpack/issues/6571\n sideEffects: true,\n },\n {\n test: stylesRegexps.lessModuleRegex,\n use: generateStyleLoaders(\n merge({}, baseStyleLoadersOptions, {\n cssLoaderOpts: {\n importLoaders: 1,\n sourceMap: isEnvProduction || shouldUseSourceMap,\n modules: {\n getLocalIdent: getCSSModuleLocalIdent,\n },\n },\n shouldUseSourceMap: isEnvProduction || shouldUseSourceMap,\n preProcessOptions: {\n resolveUrlLoaderPath: require.resolve('resolve-url-loader'),\n preProcessorPath: require.resolve('less-loader'),\n },\n })\n ),\n },\n {\n test: [/\\.bmp$/, /\\.gif$/, /\\.jpe?g$/, /\\.png$/],\n type: 'asset',\n parser: {\n dataUrlCondition: {\n maxSize: imageInlineSizeLimit,\n },\n },\n generator: {\n filename: 'static/images/[hash][ext][query]',\n },\n },\n {\n // loads svg as both inlineUrl and react component, like:\n // import starUrl, { ReactComponent as StarIcon } from './star.svg';\n // (remove when there is native support for both opitons from webpack5 / svgr)\n test: /\\.svg$/,\n oneOf: [\n {\n dependency: { not: ['url'] }, // exclude new URL calls\n use: [\n {\n loader: require.resolve('@svgr/webpack'),\n options: { titleProp: true, ref: true },\n },\n require.resolve('new-url-loader'),\n ],\n },\n {\n type: 'asset', // export a data URI or emit a separate file\n },\n ],\n },\n {\n test: /\\.(woff(2)?|ttf|eot|svg)(\\?v=\\d+\\.\\d+\\.\\d+)?$/,\n type: 'asset',\n generator: {\n filename: 'static/fonts/[hash][ext][query]',\n },\n },\n\n // \"file\" loader makes sure those assets get served by WebpackDevServer.\n // When you `import` an asset, you get its (virtual) filename.\n // In production, they would get copied to the `build` folder.\n // This loader doesn't use a \"test\" so it will catch all modules\n // that fall through the other loaders.\n {\n // Exclude `js` files to keep \"css\" loader working as it injects\n // its runtime that would otherwise be processed through \"file\" loader.\n // Also exclude `html` and `json` extensions so they get processed\n // by webpacks internal loaders.\n exclude: [/\\.(js|mjs|cjs|jsx|ts|tsx)$/, /\\.html$/, /\\.mdx?/, /\\.json$/, /\\.css$/],\n generator: {\n filename: 'static/[hash][ext][query]',\n },\n type: 'asset',\n },\n // ** STOP ** Are you adding a new loader?\n // Make sure to add the new loader(s) before the \"type:asset\" loader.\n ],\n },\n ],\n },\n // @ts-ignore\n plugins: [\n isEnvProduction &&\n new MiniCssExtractPlugin({\n // Options similar to the same options in webpackOptions.output\n // both options are optional\n filename: 'static/css/[name].[contenthash:8].css',\n chunkFilename: 'static/css/[name].[contenthash:8].chunk.css',\n }),\n // Moment.js is an extremely popular library that bundles large locale files\n // by default due to how webpack interprets its code. This is a practical\n // solution that requires the user to opt into importing specific locales.\n // https://github.com/jmblog/how-to-optimize-momentjs-with-webpack\n // You can remove this if you don't use Moment.js:\n new IgnorePlugin({\n resourceRegExp: new RegExp(`^\\\\.${sep}locale$`),\n contextRegExp: /moment$/,\n }),\n ].filter(Boolean),\n // Turn off performance processing because we utilize\n // our own hints via the FileSizeReporter\n performance: false,\n };\n}\n"],"mappings":";;;;;;;;;;;;;;;;AAAA;EAAA;EAAA;IAAA;EAAA;EAAA;AAAA;AACA;EAAA;EAAA;IAAA;EAAA;EAAA;AAAA;AACA;AACA;EAAA;EAAA;IAAA;EAAA;EAAA;AAAA;AACA;EAAA;EAAA;IAAA;EAAA;EAAA;AAAA;AACA;EAAA;EAAA;IAAA;EAAA;EAAA;AAAA;AACA;EAAA;EAAA;IAAA;EAAA;EAAA;AAAA;AACA;EAAA;EAAA;IAAA;EAAA;EAAA;AAAA;AACA;EAAA;EAAA;IAAA;EAAA;EAAA;AAAA;AAGA;AAEA;AAAyC;AAAA;AAAA;AAAA;AAEzC,MAAMA,eAAe,GAAGC,OAAO,CAACC,OAAO,CAAC,cAAc,CAAC;AAEvD,MAAMC,oBAAoB,GAAG,CAC3B,SAAS,EACT,KAAK,EACL,QAAQ,EACR,IAAI,EACJ,KAAK,EACL,QAAQ,EACR,IAAI,EACJ,SAAS,EACT,KAAK,EACL,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,aAAa,EAAE;IACjB,CAAC,CAAC;IACJ;IACA;IACA;IACA;IACA;IACA,KAAIC,uBAAY,EAAC;MACfC,cAAc,EAAE,IAAIC,MAAM,CAAE,OAAMC,WAAI,SAAQ,CAAC;MAC/CC,aAAa,EAAE;IACjB,CAAC,CAAC,CACH,CAACC,MAAM,CAACC,OAAO,CAAC;IACjB;IACA;IACAC,WAAW,EAAE;EACf,CAAC;AACH"}
package/package.json CHANGED
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "@teambit/react",
3
- "version": "0.0.1016",
3
+ "version": "0.0.1018",
4
4
  "homepage": "https://bit.dev/teambit/react/react",
5
5
  "main": "dist/index.js",
6
6
  "componentId": {
7
7
  "scope": "teambit.react",
8
8
  "name": "react",
9
- "version": "0.0.1016"
9
+ "version": "0.0.1018"
10
10
  },
11
11
  "dependencies": {
12
12
  "fs-extra": "10.0.0",
@@ -84,37 +84,37 @@
84
84
  "@teambit/react.rendering.ssr": "0.0.3",
85
85
  "@teambit/compositions.ui.hooks.use-composition": "0.0.172",
86
86
  "@teambit/design.ui.tooltip": "0.0.361",
87
- "@teambit/builder": "0.0.1016",
88
- "@teambit/bundler": "0.0.1016",
89
- "@teambit/compiler": "0.0.1016",
87
+ "@teambit/builder": "0.0.1018",
88
+ "@teambit/bundler": "0.0.1018",
89
+ "@teambit/compiler": "0.0.1018",
90
90
  "@teambit/component.modules.component-url": "0.0.151",
91
- "@teambit/component": "0.0.1016",
92
- "@teambit/dependency-resolver": "0.0.1016",
93
- "@teambit/envs": "0.0.1016",
94
- "@teambit/eslint": "0.0.1016",
95
- "@teambit/formatter": "0.0.567",
96
- "@teambit/jest": "0.0.1016",
97
- "@teambit/linter": "0.0.1016",
98
- "@teambit/logger": "0.0.773",
99
- "@teambit/pkg": "0.0.1016",
100
- "@teambit/prettier": "0.0.567",
101
- "@teambit/preview": "0.0.1016",
91
+ "@teambit/component": "0.0.1018",
92
+ "@teambit/dependency-resolver": "0.0.1018",
93
+ "@teambit/envs": "0.0.1018",
94
+ "@teambit/eslint": "0.0.1018",
95
+ "@teambit/formatter": "0.0.569",
96
+ "@teambit/jest": "0.0.1018",
97
+ "@teambit/linter": "0.0.1018",
98
+ "@teambit/logger": "0.0.775",
99
+ "@teambit/pkg": "0.0.1018",
100
+ "@teambit/prettier": "0.0.569",
101
+ "@teambit/preview": "0.0.1018",
102
102
  "@teambit/react.ui.compositions-app": "0.0.12",
103
103
  "@teambit/react.ui.docs-app": "0.0.205",
104
104
  "@teambit/react.ui.highlighter.component-metadata.bit-component-meta": "0.0.31",
105
- "@teambit/schema": "0.0.1016",
106
- "@teambit/tester": "0.0.1016",
107
- "@teambit/typescript": "0.0.1016",
108
- "@teambit/webpack": "0.0.1016",
109
- "@teambit/workspace": "0.0.1016",
110
- "@teambit/application": "0.0.658",
111
- "@teambit/cli": "0.0.680",
112
- "@teambit/generator": "0.0.1016",
113
- "@teambit/graphql": "0.0.1016",
105
+ "@teambit/schema": "0.0.1018",
106
+ "@teambit/tester": "0.0.1018",
107
+ "@teambit/typescript": "0.0.1018",
108
+ "@teambit/webpack": "0.0.1018",
109
+ "@teambit/workspace": "0.0.1018",
110
+ "@teambit/application": "0.0.660",
111
+ "@teambit/cli": "0.0.682",
112
+ "@teambit/generator": "0.0.1018",
113
+ "@teambit/graphql": "0.0.1018",
114
114
  "@teambit/react.ui.highlighter-provider": "0.0.200",
115
- "@teambit/compositions": "0.0.1016",
116
- "@teambit/ui": "0.0.1016",
117
- "@teambit/react.eslint-config-bit-react": "0.0.752",
115
+ "@teambit/compositions": "0.0.1018",
116
+ "@teambit/ui": "0.0.1018",
117
+ "@teambit/react.eslint-config-bit-react": "0.0.754",
118
118
  "@teambit/mdx.modules.mdx-loader": "0.0.501",
119
119
  "@teambit/react.babel.bit-react-transformer": "0.0.529",
120
120
  "@teambit/webpack.modules.generate-style-loaders": "0.0.110",
@@ -124,7 +124,7 @@
124
124
  "@teambit/toolbox.network.get-port": "0.0.121",
125
125
  "@teambit/react.modules.prerenderer-puppeteer": "0.0.9",
126
126
  "@teambit/ui-foundation.ui.pages.static-error": "0.0.86",
127
- "@teambit/config": "0.0.693"
127
+ "@teambit/config": "0.0.695"
128
128
  },
129
129
  "devDependencies": {
130
130
  "@types/react": "^17.0.8",
@@ -146,7 +146,7 @@
146
146
  "@teambit/react.content.react-overview": "1.95.0"
147
147
  },
148
148
  "peerDependencies": {
149
- "@teambit/legacy": "1.0.459",
149
+ "@teambit/legacy": "1.0.461",
150
150
  "react-dom": "^16.8.0 || ^17.0.0",
151
151
  "react": "^16.8.0 || ^17.0.0"
152
152
  },
@@ -60,7 +60,7 @@ export default function (isEnvProduction = false): Configuration {
60
60
 
61
61
  return {
62
62
  // TODO: make the dev tool according to shouldUseSourceMap and isEnvProduction
63
- // devtool: 'eval-cheap-source-map',
63
+ // devtool: 'eval-cheap-module-source-map',
64
64
  resolve: {
65
65
  // These are the reasonable defaults supported by the Node ecosystem.
66
66
  // We also include JSX as a common component filename extension to support