@teambit/react 0.0.881 → 0.0.882

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 (236) hide show
  1. package/artifacts/__bit_junit.xml +2 -2
  2. package/artifacts/env-template/public/{238.2ddc5a20aad2fef149e6.js → 700.fcb0085dcdf160cc65c9.js} +15 -15
  3. package/artifacts/env-template/public/assets-manifest.json +16 -16
  4. package/artifacts/env-template/public/{compositions.c4e18d110cce13606364.js → compositions.d36450c5ae70173e7a70.js} +1 -1
  5. package/artifacts/env-template/public/compositions.html +1 -1
  6. package/artifacts/env-template/public/{overview.085d128a4f5272ef7319.js → overview.ca1695b4bf4d507d7a28.js} +1 -1
  7. package/artifacts/env-template/public/overview.html +1 -1
  8. package/artifacts/env-template/public/peers.9642cecf0c09b9d93f54.js +1 -0
  9. package/artifacts/env-template/public/{preview-root.b9ea187989f25bad7bf4.js → preview-root.a829360e0cc95e341dfd.js} +1 -1
  10. package/artifacts/env-template/public/static/css/700.bd8655a5.css +1 -0
  11. package/artifacts/env-template/public/static/css/compositions.e163efe5.css +1 -0
  12. package/artifacts/env-template/public/static/css/{overview.367aeb5b.css → overview.18adf1ee.css} +1 -1
  13. package/artifacts/preview/teambit_react_react-preview.js +1 -1
  14. package/{compositions-1666409808293.js → compositions-1666496165706.js} +0 -0
  15. package/dist/apps/web/compute-results.js +0 -2
  16. package/dist/apps/web/compute-results.js.map +1 -1
  17. package/dist/apps/web/index.js +0 -3
  18. package/dist/apps/web/index.js.map +1 -1
  19. package/dist/apps/web/plugins/index.js +0 -3
  20. package/dist/apps/web/plugins/index.js.map +1 -1
  21. package/dist/apps/web/plugins/prerender.js +0 -14
  22. package/dist/apps/web/plugins/prerender.js.map +1 -1
  23. package/dist/apps/web/react.app-type.js +0 -7
  24. package/dist/apps/web/react.app-type.js.map +1 -1
  25. package/dist/apps/web/react.application.js +11 -76
  26. package/dist/apps/web/react.application.js.map +1 -1
  27. package/dist/apps/web/ssr/ssr-express.js +0 -31
  28. package/dist/apps/web/ssr/ssr-express.js.map +1 -1
  29. package/dist/apps/web/webpack/mutators.js +0 -13
  30. package/dist/apps/web/webpack/mutators.js.map +1 -1
  31. package/dist/apps/web/webpack/webpack.app.ssr.config.js +0 -11
  32. package/dist/apps/web/webpack/webpack.app.ssr.config.js.map +1 -1
  33. package/dist/eslint/eslintrc.js +1 -1
  34. package/dist/eslint/eslintrc.js.map +1 -1
  35. package/dist/highlighter-widget.js +0 -16
  36. package/dist/highlighter-widget.js.map +1 -1
  37. package/dist/index.js +0 -3
  38. package/dist/index.js.map +1 -1
  39. package/dist/jest/index.js +0 -7
  40. package/dist/jest/index.js.map +1 -1
  41. package/dist/jest/jest.base.config.js +3 -3
  42. package/dist/jest/jest.base.config.js.map +1 -1
  43. package/dist/jest/jest.cjs.config.js +0 -10
  44. package/dist/jest/jest.cjs.config.js.map +1 -1
  45. package/dist/jest/jest.config.js +1 -1
  46. package/dist/jest/jest.config.js.map +1 -1
  47. package/dist/jest/jest.esm.config.js +0 -10
  48. package/dist/jest/jest.esm.config.js.map +1 -1
  49. package/dist/jest/setupTests.js.map +1 -1
  50. package/dist/jest/transformers/base-transformer-plugins.js +1 -0
  51. package/dist/jest/transformers/base-transformer-plugins.js.map +1 -1
  52. package/dist/jest/transformers/base-transformer-presets.js +1 -0
  53. package/dist/jest/transformers/base-transformer-presets.js.map +1 -1
  54. package/dist/jest/transformers/base-transformer-process.js +0 -2
  55. package/dist/jest/transformers/base-transformer-process.js.map +1 -1
  56. package/dist/jest/transformers/cjs-transformer.js +0 -5
  57. package/dist/jest/transformers/cjs-transformer.js.map +1 -1
  58. package/dist/jest/transformers/css-transform.js +1 -2
  59. package/dist/jest/transformers/css-transform.js.map +1 -1
  60. package/dist/jest/transformers/esm-transformer.js +1 -5
  61. package/dist/jest/transformers/esm-transformer.js.map +1 -1
  62. package/dist/jest/transformers/file-transform.js +2 -6
  63. package/dist/jest/transformers/file-transform.js.map +1 -1
  64. package/dist/prettier/prettier.config.js.map +1 -1
  65. package/dist/react.aspect.js +0 -5
  66. package/dist/react.aspect.js.map +1 -1
  67. package/dist/react.composition.js +0 -6
  68. package/dist/react.composition.js.map +1 -1
  69. package/dist/react.env.js +34 -143
  70. package/dist/react.env.js.map +1 -1
  71. package/dist/react.graphql.js +0 -6
  72. package/dist/react.graphql.js.map +1 -1
  73. package/dist/react.main.runtime.js +23 -152
  74. package/dist/react.main.runtime.js.map +1 -1
  75. package/dist/react.preview.runtime.js +0 -32
  76. package/dist/react.preview.runtime.js.map +1 -1
  77. package/dist/react.templates.js +0 -46
  78. package/dist/react.templates.js.map +1 -1
  79. package/dist/react.ui.runtime.js +0 -35
  80. package/dist/react.ui.runtime.js.map +1 -1
  81. package/dist/templates/react-app/files/app-plugin.js +0 -1
  82. package/dist/templates/react-app/files/app-plugin.js.map +1 -1
  83. package/dist/templates/react-app/files/app-root.js +0 -1
  84. package/dist/templates/react-app/files/app-root.js.map +1 -1
  85. package/dist/templates/react-app/files/app.js +0 -1
  86. package/dist/templates/react-app/files/app.js.map +1 -1
  87. package/dist/templates/react-app/files/compositions.js +0 -1
  88. package/dist/templates/react-app/files/compositions.js.map +1 -1
  89. package/dist/templates/react-app/files/doc.js +0 -1
  90. package/dist/templates/react-app/files/doc.js.map +1 -1
  91. package/dist/templates/react-app/files/index.js +0 -1
  92. package/dist/templates/react-app/files/index.js.map +1 -1
  93. package/dist/templates/react-app/index.js +0 -19
  94. package/dist/templates/react-app/index.js.map +1 -1
  95. package/dist/templates/react-component/files/component.js +0 -2
  96. package/dist/templates/react-component/files/component.js.map +1 -1
  97. package/dist/templates/react-component/files/composition.js +0 -2
  98. package/dist/templates/react-component/files/composition.js.map +1 -1
  99. package/dist/templates/react-component/files/docs.js +0 -2
  100. package/dist/templates/react-component/files/docs.js.map +1 -1
  101. package/dist/templates/react-component/files/index-file.js +0 -2
  102. package/dist/templates/react-component/files/index-file.js.map +1 -1
  103. package/dist/templates/react-component/files/test.js +0 -2
  104. package/dist/templates/react-component/files/test.js.map +1 -1
  105. package/dist/templates/react-component/index.js +0 -24
  106. package/dist/templates/react-component/index.js.map +1 -1
  107. package/dist/templates/react-component-js/files/component.js +0 -2
  108. package/dist/templates/react-component-js/files/component.js.map +1 -1
  109. package/dist/templates/react-component-js/files/composition.js +0 -2
  110. package/dist/templates/react-component-js/files/composition.js.map +1 -1
  111. package/dist/templates/react-component-js/files/docs.js +0 -2
  112. package/dist/templates/react-component-js/files/docs.js.map +1 -1
  113. package/dist/templates/react-component-js/files/test.js +0 -2
  114. package/dist/templates/react-component-js/files/test.js.map +1 -1
  115. package/dist/templates/react-component-js/index.js +0 -21
  116. package/dist/templates/react-component-js/index.js.map +1 -1
  117. package/dist/templates/react-context/files/composition.js +0 -2
  118. package/dist/templates/react-context/files/composition.js.map +1 -1
  119. package/dist/templates/react-context/files/context-provider.js +0 -2
  120. package/dist/templates/react-context/files/context-provider.js.map +1 -1
  121. package/dist/templates/react-context/files/context.js +0 -2
  122. package/dist/templates/react-context/files/context.js.map +1 -1
  123. package/dist/templates/react-context/files/docs.js +0 -2
  124. package/dist/templates/react-context/files/docs.js.map +1 -1
  125. package/dist/templates/react-context/files/index-file.js +0 -2
  126. package/dist/templates/react-context/files/index-file.js.map +1 -1
  127. package/dist/templates/react-context/files/test.js +0 -2
  128. package/dist/templates/react-context/files/test.js.map +1 -1
  129. package/dist/templates/react-context/index.js +0 -19
  130. package/dist/templates/react-context/index.js.map +1 -1
  131. package/dist/templates/react-env/files/aspect.js +0 -1
  132. package/dist/templates/react-env/files/aspect.js.map +1 -1
  133. package/dist/templates/react-env/files/doc.js +0 -1
  134. package/dist/templates/react-env/files/doc.js.map +1 -1
  135. package/dist/templates/react-env/files/index.js +0 -1
  136. package/dist/templates/react-env/files/index.js.map +1 -1
  137. package/dist/templates/react-env/files/jest.config.js +0 -1
  138. package/dist/templates/react-env/files/jest.config.js.map +1 -1
  139. package/dist/templates/react-env/files/main.runtime.js +0 -1
  140. package/dist/templates/react-env/files/main.runtime.js.map +1 -1
  141. package/dist/templates/react-env/files/preview.runtime.js +0 -1
  142. package/dist/templates/react-env/files/preview.runtime.js.map +1 -1
  143. package/dist/templates/react-env/files/typescript/styles.js +0 -1
  144. package/dist/templates/react-env/files/typescript/styles.js.map +1 -1
  145. package/dist/templates/react-env/files/typescript/ts-transformer.js +0 -1
  146. package/dist/templates/react-env/files/typescript/ts-transformer.js.map +1 -1
  147. package/dist/templates/react-env/files/typescript/typescript.config.js +0 -1
  148. package/dist/templates/react-env/files/typescript/typescript.config.js.map +1 -1
  149. package/dist/templates/react-env/files/webpack.config.js +0 -1
  150. package/dist/templates/react-env/files/webpack.config.js.map +1 -1
  151. package/dist/templates/react-env/index.js +0 -31
  152. package/dist/templates/react-env/index.js.map +1 -1
  153. package/dist/templates/react-hook/files/component.js +0 -2
  154. package/dist/templates/react-hook/files/component.js.map +1 -1
  155. package/dist/templates/react-hook/files/composition.js +0 -2
  156. package/dist/templates/react-hook/files/composition.js.map +1 -1
  157. package/dist/templates/react-hook/files/docs.js +0 -2
  158. package/dist/templates/react-hook/files/docs.js.map +1 -1
  159. package/dist/templates/react-hook/files/index-file.js +0 -2
  160. package/dist/templates/react-hook/files/index-file.js.map +1 -1
  161. package/dist/templates/react-hook/files/index-file.spec.js +0 -6
  162. package/dist/templates/react-hook/files/index-file.spec.js.map +1 -1
  163. package/dist/templates/react-hook/files/test.js +0 -2
  164. package/dist/templates/react-hook/files/test.js.map +1 -1
  165. package/dist/templates/react-hook/index.js +0 -16
  166. package/dist/templates/react-hook/index.js.map +1 -1
  167. package/dist/templates/react-workspace/index.js +2 -6
  168. package/dist/templates/react-workspace/index.js.map +1 -1
  169. package/dist/templates/react-workspace-analytics/index.js +0 -5
  170. package/dist/templates/react-workspace-analytics/index.js.map +1 -1
  171. package/dist/templates/react-workspace-app/index.js +2 -13
  172. package/dist/templates/react-workspace-app/index.js.map +1 -1
  173. package/dist/templates/react-workspace-blog/index.js +0 -5
  174. package/dist/templates/react-workspace-blog/index.js.map +1 -1
  175. package/dist/templates/react-workspace-data-fetching/index.js +0 -5
  176. package/dist/templates/react-workspace-data-fetching/index.js.map +1 -1
  177. package/dist/templates/react-workspace-deprecated/index.js +0 -5
  178. package/dist/templates/react-workspace-deprecated/index.js.map +1 -1
  179. package/dist/templates/react-workspace-design-system/index.js +0 -5
  180. package/dist/templates/react-workspace-design-system/index.js.map +1 -1
  181. package/dist/templates/react-workspace-lib/index.js +0 -5
  182. package/dist/templates/react-workspace-lib/index.js.map +1 -1
  183. package/dist/templates/react-workspace-wiki/index.js +0 -5
  184. package/dist/templates/react-workspace-wiki/index.js.map +1 -1
  185. package/dist/templates/workspace-common/constants.js.map +1 -1
  186. package/dist/templates/workspace-common/files/eslint-config.js.map +1 -1
  187. package/dist/templates/workspace-common/files/git-ignore.js +0 -1
  188. package/dist/templates/workspace-common/files/git-ignore.js.map +1 -1
  189. package/dist/templates/workspace-common/files/launch-json.js +0 -2
  190. package/dist/templates/workspace-common/files/launch-json.js.map +1 -1
  191. package/dist/templates/workspace-common/files/prettier-config.js.map +1 -1
  192. package/dist/templates/workspace-common/files/readme-file.js +0 -1
  193. package/dist/templates/workspace-common/files/readme-file.js.map +1 -1
  194. package/dist/templates/workspace-common/files/ts-config.js.map +1 -1
  195. package/dist/templates/workspace-common/files/types/asset.js.map +1 -1
  196. package/dist/templates/workspace-common/files/types/style.js.map +1 -1
  197. package/dist/templates/workspace-common/files/workspace-config.js +0 -14
  198. package/dist/templates/workspace-common/files/workspace-config.js.map +1 -1
  199. package/dist/templates/workspace-common/generate-files.js +0 -29
  200. package/dist/templates/workspace-common/generate-files.js.map +1 -1
  201. package/dist/templates/workspace-common/index.js +0 -3
  202. package/dist/templates/workspace-common/index.js.map +1 -1
  203. package/dist/webpack/html.js +3 -2
  204. package/dist/webpack/html.js.map +1 -1
  205. package/dist/webpack/index.js +0 -3
  206. package/dist/webpack/index.js.map +1 -1
  207. package/dist/webpack/overlay/formatWebpackMessages.js +26 -37
  208. package/dist/webpack/overlay/formatWebpackMessages.js.map +1 -1
  209. package/dist/webpack/overlay/launchEditorEndpoint.js +2 -2
  210. package/dist/webpack/overlay/launchEditorEndpoint.js.map +1 -1
  211. package/dist/webpack/overlay/refreshOverlayInterop.js +1 -3
  212. package/dist/webpack/overlay/refreshOverlayInterop.js.map +1 -1
  213. package/dist/webpack/overlay/webpackHotDevClient.js +54 -71
  214. package/dist/webpack/overlay/webpackHotDevClient.js.map +1 -1
  215. package/dist/webpack/postcss.config.js +6 -3
  216. package/dist/webpack/postcss.config.js.map +1 -1
  217. package/dist/webpack/webpack.config.base.js +28 -53
  218. package/dist/webpack/webpack.config.base.js.map +1 -1
  219. package/dist/webpack/webpack.config.base.prod.js +10 -14
  220. package/dist/webpack/webpack.config.base.prod.js.map +1 -1
  221. package/dist/webpack/webpack.config.component.dev.js +10 -17
  222. package/dist/webpack/webpack.config.component.dev.js.map +1 -1
  223. package/dist/webpack/webpack.config.component.prod.js +3 -6
  224. package/dist/webpack/webpack.config.component.prod.js.map +1 -1
  225. package/dist/webpack/webpack.config.env.dev.js +5 -5
  226. package/dist/webpack/webpack.config.env.dev.js.map +1 -1
  227. package/dist/webpack/webpack.config.env.template.js +0 -1
  228. package/dist/webpack/webpack.config.env.template.js.map +1 -1
  229. package/{overview-1666409808293.js → overview-1666496165706.js} +0 -0
  230. package/package-tar/teambit-react-0.0.882.tgz +0 -0
  231. package/package.json +25 -25
  232. package/{preview-1666409808293.js → preview-1666496165706.js} +2 -2
  233. package/artifacts/env-template/public/peers.df1b33444b47cc9becfc.js +0 -1
  234. package/artifacts/env-template/public/static/css/238.a0238c25.css +0 -1
  235. package/artifacts/env-template/public/static/css/compositions.6d8c7702.css +0 -1
  236. package/package-tar/teambit-react-0.0.881.tgz +0 -0
@@ -1,5 +1,4 @@
1
1
  /* eslint-disable */
2
-
3
2
  /*
4
3
  * this file was copied as is from `react-dev-utils/webpackHotDevClient`
5
4
  * and adjusted for our socket url.
@@ -14,40 +13,36 @@
14
13
  * This source code is licensed under the MIT license found in the
15
14
  * LICENSE file in the root directory of this source tree.
16
15
  */
17
- 'use strict'; // This alternative WebpackDevServer combines the functionality of:
16
+
17
+ 'use strict';
18
+
19
+ // This alternative WebpackDevServer combines the functionality of:
18
20
  // https://github.com/webpack/webpack-dev-server/blob/webpack-1/client/index.js
19
21
  // https://github.com/webpack/webpack/blob/webpack-1/hot/dev-server.js
22
+
20
23
  // It only supports their simplest configuration (hot updates on same server).
21
24
  // It makes some opinionated choices on top, like adding a syntax error overlay
22
25
  // that looks similar to our console output. The error overlay is inspired by:
23
26
  // https://github.com/glenjamin/webpack-hot-middleware
24
-
25
27
  require("core-js/modules/es.array.iterator.js");
26
-
27
28
  require("core-js/modules/es.promise.js");
28
-
29
29
  require("core-js/modules/web.url.js");
30
-
31
30
  var stripAnsi = require('strip-ansi');
32
-
33
31
  var url = require('url');
34
-
35
32
  var launchEditorEndpoint = require('./launchEditorEndpoint');
36
-
37
33
  var formatWebpackMessages = require('./formatWebpackMessages');
38
-
39
34
  var ErrorOverlay = require('react-error-overlay');
40
-
41
35
  ErrorOverlay.setEditorHandler(function editorHandler(errorLocation) {
42
36
  // Keep this sync with errorOverlayMiddleware.js
43
37
  fetch(launchEditorEndpoint + '?fileName=' + window.encodeURIComponent(errorLocation.fileName) + '&lineNumber=' + window.encodeURIComponent(errorLocation.lineNumber || 1) + '&colNumber=' + window.encodeURIComponent(errorLocation.colNumber || 1));
44
- }); // We need to keep track of if there has been a runtime error.
38
+ });
39
+
40
+ // We need to keep track of if there has been a runtime error.
45
41
  // Essentially, we cannot guarantee application state was not corrupted by the
46
42
  // runtime error. To prevent confusing behavior, we forcibly reload the entire
47
43
  // application. This is handled below when we are notified of a compile (code
48
44
  // change).
49
45
  // See https://github.com/facebook/create-react-app/issues/3096
50
-
51
46
  var hadRuntimeError = false;
52
47
  ErrorOverlay.startReportingRuntimeErrors({
53
48
  onError: function () {
@@ -55,38 +50,37 @@ ErrorOverlay.startReportingRuntimeErrors({
55
50
  },
56
51
  filename: '/static/js/bundle.js'
57
52
  });
58
-
59
53
  if (module.hot && typeof module.hot.dispose === 'function') {
60
54
  module.hot.dispose(function () {
61
55
  // TODO: why do we need this?
62
56
  ErrorOverlay.stopReportingRuntimeErrors();
63
57
  });
64
58
  }
65
-
66
59
  const querystring = module.id.substring(module.id.indexOf('?'));
67
- const urlParams = new URLSearchParams(querystring); // Connect to WebpackDevServer via a socket.
60
+ const urlParams = new URLSearchParams(querystring);
68
61
 
62
+ // Connect to WebpackDevServer via a socket.
69
63
  var connection = new WebSocket(url.format({
70
64
  protocol: window.location.protocol === 'https:' ? 'wss' : 'ws',
71
65
  hostname: window.location.hostname,
72
66
  port: window.location.port,
73
67
  pathname: urlParams.get('sockPath') || '/ws',
74
68
  slashes: true
75
- })); // Unlike WebpackDevServer client, we won't try to reconnect
69
+ }));
70
+
71
+ // Unlike WebpackDevServer client, we won't try to reconnect
76
72
  // to avoid spamming the console. Disconnect usually happens
77
73
  // when developer stops the server.
78
-
79
74
  connection.onclose = function () {
80
75
  if (typeof console !== 'undefined' && typeof console.info === 'function') {
81
76
  console.info('The development server has disconnected.\nRefresh the page if necessary.');
82
77
  }
83
- }; // Remember some state related to hot module replacement.
84
-
78
+ };
85
79
 
80
+ // Remember some state related to hot module replacement.
86
81
  var isFirstCompilation = true;
87
82
  var mostRecentCompilationHash = null;
88
83
  var hasCompileErrors = false;
89
-
90
84
  function clearOutdatedErrors() {
91
85
  // Clean up outdated compile errors, if any.
92
86
  if (typeof console !== 'undefined' && typeof console.clear === 'function') {
@@ -94,15 +88,16 @@ function clearOutdatedErrors() {
94
88
  console.clear();
95
89
  }
96
90
  }
97
- } // Successful compilation.
98
-
91
+ }
99
92
 
93
+ // Successful compilation.
100
94
  function handleSuccess() {
101
95
  clearOutdatedErrors();
102
96
  var isHotUpdate = !isFirstCompilation;
103
97
  isFirstCompilation = false;
104
- hasCompileErrors = false; // Attempt to apply hot updates or reload.
98
+ hasCompileErrors = false;
105
99
 
100
+ // Attempt to apply hot updates or reload.
106
101
  if (isHotUpdate) {
107
102
  tryApplyUpdates(function onHotUpdateSuccess() {
108
103
  // Only dismiss it when we're sure it's a hot update.
@@ -110,36 +105,33 @@ function handleSuccess() {
110
105
  tryDismissErrorOverlay();
111
106
  });
112
107
  }
113
- } // Compilation with warnings (e.g. ESLint).
114
-
108
+ }
115
109
 
110
+ // Compilation with warnings (e.g. ESLint).
116
111
  function handleWarnings(warnings) {
117
112
  clearOutdatedErrors();
118
113
  var isHotUpdate = !isFirstCompilation;
119
114
  isFirstCompilation = false;
120
115
  hasCompileErrors = false;
121
-
122
116
  function printWarnings() {
123
117
  // Print warnings to the console.
124
118
  var formatted = formatWebpackMessages({
125
119
  warnings: warnings,
126
120
  errors: []
127
121
  });
128
-
129
122
  if (typeof console !== 'undefined' && typeof console.warn === 'function') {
130
123
  for (var i = 0; i < formatted.warnings.length; i++) {
131
124
  if (i === 5) {
132
125
  console.warn('There were more warnings in other files.\n' + 'You can find a complete log in the terminal.');
133
126
  break;
134
127
  }
135
-
136
128
  console.warn(stripAnsi(formatted.warnings[i]));
137
129
  }
138
130
  }
139
131
  }
132
+ printWarnings();
140
133
 
141
- printWarnings(); // Attempt to apply hot updates or reload.
142
-
134
+ // Attempt to apply hot updates or reload.
143
135
  if (isHotUpdate) {
144
136
  tryApplyUpdates(function onSuccessfulHotUpdate() {
145
137
  // Only dismiss it when we're sure it's a hot update.
@@ -147,139 +139,130 @@ function handleWarnings(warnings) {
147
139
  tryDismissErrorOverlay();
148
140
  });
149
141
  }
150
- } // Compilation with errors (e.g. syntax error or missing modules).
151
-
142
+ }
152
143
 
144
+ // Compilation with errors (e.g. syntax error or missing modules).
153
145
  function handleErrors(errors) {
154
146
  clearOutdatedErrors();
155
147
  isFirstCompilation = false;
156
- hasCompileErrors = true; // "Massage" webpack messages.
148
+ hasCompileErrors = true;
157
149
 
150
+ // "Massage" webpack messages.
158
151
  var formatted = formatWebpackMessages({
159
152
  errors: errors,
160
153
  warnings: []
161
- }); // Only show the first error.
154
+ });
162
155
 
163
- ErrorOverlay.reportBuildError(formatted.errors[0]); // Also log them to the console.
156
+ // Only show the first error.
157
+ ErrorOverlay.reportBuildError(formatted.errors[0]);
164
158
 
159
+ // Also log them to the console.
165
160
  if (typeof console !== 'undefined' && typeof console.error === 'function') {
166
161
  for (var i = 0; i < formatted.errors.length; i++) {
167
162
  console.error(stripAnsi(formatted.errors[i]));
168
163
  }
169
- } // Do not attempt to reload now.
170
- // We will reload on next success instead.
164
+ }
171
165
 
166
+ // Do not attempt to reload now.
167
+ // We will reload on next success instead.
172
168
  }
173
169
 
174
170
  function tryDismissErrorOverlay() {
175
171
  if (!hasCompileErrors) {
176
172
  ErrorOverlay.dismissBuildError();
177
173
  }
178
- } // There is a newer version of the code available.
179
-
174
+ }
180
175
 
176
+ // There is a newer version of the code available.
181
177
  function handleAvailableHash(hash) {
182
178
  // Update last known compilation hash.
183
179
  mostRecentCompilationHash = hash;
184
- } // Handle messages from the server.
185
-
180
+ }
186
181
 
182
+ // Handle messages from the server.
187
183
  connection.onmessage = function (e) {
188
184
  var message = JSON.parse(e.data);
189
-
190
185
  switch (message.type) {
191
186
  case 'hash':
192
187
  handleAvailableHash(message.data);
193
188
  break;
194
-
195
189
  case 'still-ok':
196
190
  case 'ok':
197
191
  handleSuccess();
198
192
  break;
199
-
200
193
  case 'content-changed':
201
194
  // Triggered when a file from `contentBase` changed.
202
195
  window.location.reload();
203
196
  break;
204
-
205
197
  case 'warnings':
206
198
  handleWarnings(message.data);
207
199
  break;
208
-
209
200
  case 'errors':
210
201
  handleErrors(message.data);
211
202
  break;
212
-
213
- default: // Do nothing.
214
-
203
+ default:
204
+ // Do nothing.
215
205
  }
216
- }; // Is there a newer version of this code available?
217
-
206
+ };
218
207
 
208
+ // Is there a newer version of this code available?
219
209
  function isUpdateAvailable() {
220
210
  /* globals __webpack_hash__ */
221
211
  // __webpack_hash__ is the hash of the current compilation.
222
212
  // It's a global variable injected by webpack.
223
213
  return mostRecentCompilationHash !== __webpack_hash__;
224
- } // webpack disallows updates in other states.
225
-
214
+ }
226
215
 
216
+ // webpack disallows updates in other states.
227
217
  function canApplyUpdates() {
228
218
  return module.hot.status() === 'idle';
229
219
  }
230
-
231
220
  function canAcceptErrors() {
232
221
  // NOTE: This var is injected by Webpack's DefinePlugin, and is a boolean instead of string.
233
222
  const hasReactRefresh = process.env.FAST_REFRESH;
234
- const status = module.hot.status(); // React refresh can handle hot-reloading over errors.
223
+ const status = module.hot.status();
224
+ // React refresh can handle hot-reloading over errors.
235
225
  // However, when hot-reload status is abort or fail,
236
226
  // it indicates the current update cannot be applied safely,
237
227
  // and thus we should bail out to a forced reload for consistency.
238
-
239
228
  return hasReactRefresh && ['abort', 'fail'].indexOf(status) === -1;
240
- } // Attempt to update code on the fly, fall back to a hard reload.
241
-
229
+ }
242
230
 
231
+ // Attempt to update code on the fly, fall back to a hard reload.
243
232
  function tryApplyUpdates(onHotUpdateSuccess) {
244
233
  if (!module.hot) {
245
234
  // HotModuleReplacementPlugin is not in webpack configuration.
246
235
  window.location.reload();
247
236
  return;
248
237
  }
249
-
250
238
  if (!isUpdateAvailable() || !canApplyUpdates()) {
251
239
  return;
252
240
  }
253
-
254
241
  function handleApplyUpdates(err, updatedModules) {
255
- const haveErrors = err || hadRuntimeError; // When there is no error but updatedModules is unavailable,
242
+ const haveErrors = err || hadRuntimeError;
243
+ // When there is no error but updatedModules is unavailable,
256
244
  // it indicates a critical failure in hot-reloading,
257
245
  // e.g. server is not ready to serve new bundle,
258
246
  // and hence we need to do a forced reload.
259
-
260
247
  const needsForcedReload = !err && !updatedModules;
261
-
262
248
  if (haveErrors && !canAcceptErrors() || needsForcedReload) {
263
249
  window.location.reload();
264
250
  return;
265
251
  }
266
-
267
252
  if (typeof onHotUpdateSuccess === 'function') {
268
253
  // Maybe we want to do something.
269
254
  onHotUpdateSuccess();
270
255
  }
271
-
272
256
  if (isUpdateAvailable()) {
273
257
  // While we were updating, there was a new update! Do it again.
274
258
  tryApplyUpdates();
275
259
  }
276
- } // https://webpack.github.io/docs/hot-module-replacement.html#check
277
-
260
+ }
278
261
 
279
- var result = module.hot.check(
280
- /* autoApply */
281
- true, handleApplyUpdates); // // webpack 2 returns a Promise instead of invoking a callback
262
+ // https://webpack.github.io/docs/hot-module-replacement.html#check
263
+ var result = module.hot.check( /* autoApply */true, handleApplyUpdates);
282
264
 
265
+ // // webpack 2 returns a Promise instead of invoking a callback
283
266
  if (result && result.then) {
284
267
  result.then(function (updatedModules) {
285
268
  handleApplyUpdates(null, updatedModules);
@@ -1 +1 @@
1
- {"version":3,"names":["stripAnsi","require","url","launchEditorEndpoint","formatWebpackMessages","ErrorOverlay","setEditorHandler","editorHandler","errorLocation","fetch","window","encodeURIComponent","fileName","lineNumber","colNumber","hadRuntimeError","startReportingRuntimeErrors","onError","filename","module","hot","dispose","stopReportingRuntimeErrors","querystring","id","substring","indexOf","urlParams","URLSearchParams","connection","WebSocket","format","protocol","location","hostname","port","pathname","get","slashes","onclose","console","info","isFirstCompilation","mostRecentCompilationHash","hasCompileErrors","clearOutdatedErrors","clear","handleSuccess","isHotUpdate","tryApplyUpdates","onHotUpdateSuccess","tryDismissErrorOverlay","handleWarnings","warnings","printWarnings","formatted","errors","warn","i","length","onSuccessfulHotUpdate","handleErrors","reportBuildError","error","dismissBuildError","handleAvailableHash","hash","onmessage","e","message","JSON","parse","data","type","reload","isUpdateAvailable","__webpack_hash__","canApplyUpdates","status","canAcceptErrors","hasReactRefresh","process","env","FAST_REFRESH","handleApplyUpdates","err","updatedModules","haveErrors","needsForcedReload","result","check","then"],"sources":["webpackHotDevClient.js"],"sourcesContent":["/* eslint-disable */\n/*\n * this file was copied as is from `react-dev-utils/webpackHotDevClient`\n * and adjusted for our socket url.\n *\n * we use just set process.env.WDS_* with the EnvironmentPlugin or DefinePlugin\n * once we get react-error-overlay up and running again\n */\n\n/**\n * Copyright (c) 2015-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n'use strict';\n\n// This alternative WebpackDevServer combines the functionality of:\n// https://github.com/webpack/webpack-dev-server/blob/webpack-1/client/index.js\n// https://github.com/webpack/webpack/blob/webpack-1/hot/dev-server.js\n\n// It only supports their simplest configuration (hot updates on same server).\n// It makes some opinionated choices on top, like adding a syntax error overlay\n// that looks similar to our console output. The error overlay is inspired by:\n// https://github.com/glenjamin/webpack-hot-middleware\n\nvar stripAnsi = require('strip-ansi');\nvar url = require('url');\nvar launchEditorEndpoint = require('./launchEditorEndpoint');\nvar formatWebpackMessages = require('./formatWebpackMessages');\nvar ErrorOverlay = require('react-error-overlay');\n\nErrorOverlay.setEditorHandler(function editorHandler(errorLocation) {\n // Keep this sync with errorOverlayMiddleware.js\n fetch(\n launchEditorEndpoint +\n '?fileName=' +\n window.encodeURIComponent(errorLocation.fileName) +\n '&lineNumber=' +\n window.encodeURIComponent(errorLocation.lineNumber || 1) +\n '&colNumber=' +\n window.encodeURIComponent(errorLocation.colNumber || 1)\n );\n});\n\n// We need to keep track of if there has been a runtime error.\n// Essentially, we cannot guarantee application state was not corrupted by the\n// runtime error. To prevent confusing behavior, we forcibly reload the entire\n// application. This is handled below when we are notified of a compile (code\n// change).\n// See https://github.com/facebook/create-react-app/issues/3096\nvar hadRuntimeError = false;\nErrorOverlay.startReportingRuntimeErrors({\n onError: function () {\n hadRuntimeError = true;\n },\n filename: '/static/js/bundle.js',\n});\n\nif (module.hot && typeof module.hot.dispose === 'function') {\n module.hot.dispose(function () {\n // TODO: why do we need this?\n ErrorOverlay.stopReportingRuntimeErrors();\n });\n}\n\nconst querystring = module.id.substring(module.id.indexOf('?'));\nconst urlParams = new URLSearchParams(querystring);\n\n// Connect to WebpackDevServer via a socket.\nvar connection = new WebSocket(\n url.format({\n protocol: window.location.protocol === 'https:' ? 'wss' : 'ws',\n hostname: window.location.hostname,\n port: window.location.port,\n pathname: urlParams.get('sockPath') || '/ws',\n slashes: true,\n })\n);\n\n// Unlike WebpackDevServer client, we won't try to reconnect\n// to avoid spamming the console. Disconnect usually happens\n// when developer stops the server.\nconnection.onclose = function () {\n if (typeof console !== 'undefined' && typeof console.info === 'function') {\n console.info('The development server has disconnected.\\nRefresh the page if necessary.');\n }\n};\n\n// Remember some state related to hot module replacement.\nvar isFirstCompilation = true;\nvar mostRecentCompilationHash = null;\nvar hasCompileErrors = false;\n\nfunction clearOutdatedErrors() {\n // Clean up outdated compile errors, if any.\n if (typeof console !== 'undefined' && typeof console.clear === 'function') {\n if (hasCompileErrors) {\n console.clear();\n }\n }\n}\n\n// Successful compilation.\nfunction handleSuccess() {\n clearOutdatedErrors();\n\n var isHotUpdate = !isFirstCompilation;\n isFirstCompilation = false;\n hasCompileErrors = false;\n\n // Attempt to apply hot updates or reload.\n if (isHotUpdate) {\n tryApplyUpdates(function onHotUpdateSuccess() {\n // Only dismiss it when we're sure it's a hot update.\n // Otherwise it would flicker right before the reload.\n tryDismissErrorOverlay();\n });\n }\n}\n\n// Compilation with warnings (e.g. ESLint).\nfunction handleWarnings(warnings) {\n clearOutdatedErrors();\n\n var isHotUpdate = !isFirstCompilation;\n isFirstCompilation = false;\n hasCompileErrors = false;\n\n function printWarnings() {\n // Print warnings to the console.\n var formatted = formatWebpackMessages({\n warnings: warnings,\n errors: [],\n });\n\n if (typeof console !== 'undefined' && typeof console.warn === 'function') {\n for (var i = 0; i < formatted.warnings.length; i++) {\n if (i === 5) {\n console.warn('There were more warnings in other files.\\n' + 'You can find a complete log in the terminal.');\n break;\n }\n console.warn(stripAnsi(formatted.warnings[i]));\n }\n }\n }\n\n printWarnings();\n\n // Attempt to apply hot updates or reload.\n if (isHotUpdate) {\n tryApplyUpdates(function onSuccessfulHotUpdate() {\n // Only dismiss it when we're sure it's a hot update.\n // Otherwise it would flicker right before the reload.\n tryDismissErrorOverlay();\n });\n }\n}\n\n// Compilation with errors (e.g. syntax error or missing modules).\nfunction handleErrors(errors) {\n clearOutdatedErrors();\n\n isFirstCompilation = false;\n hasCompileErrors = true;\n\n // \"Massage\" webpack messages.\n var formatted = formatWebpackMessages({\n errors: errors,\n warnings: [],\n });\n\n // Only show the first error.\n ErrorOverlay.reportBuildError(formatted.errors[0]);\n\n // Also log them to the console.\n if (typeof console !== 'undefined' && typeof console.error === 'function') {\n for (var i = 0; i < formatted.errors.length; i++) {\n console.error(stripAnsi(formatted.errors[i]));\n }\n }\n\n // Do not attempt to reload now.\n // We will reload on next success instead.\n}\n\nfunction tryDismissErrorOverlay() {\n if (!hasCompileErrors) {\n ErrorOverlay.dismissBuildError();\n }\n}\n\n// There is a newer version of the code available.\nfunction handleAvailableHash(hash) {\n // Update last known compilation hash.\n mostRecentCompilationHash = hash;\n}\n\n// Handle messages from the server.\nconnection.onmessage = function (e) {\n var message = JSON.parse(e.data);\n switch (message.type) {\n case 'hash':\n handleAvailableHash(message.data);\n break;\n case 'still-ok':\n case 'ok':\n handleSuccess();\n break;\n case 'content-changed':\n // Triggered when a file from `contentBase` changed.\n window.location.reload();\n break;\n case 'warnings':\n handleWarnings(message.data);\n break;\n case 'errors':\n handleErrors(message.data);\n break;\n default:\n // Do nothing.\n }\n};\n\n// Is there a newer version of this code available?\nfunction isUpdateAvailable() {\n /* globals __webpack_hash__ */\n // __webpack_hash__ is the hash of the current compilation.\n // It's a global variable injected by webpack.\n return mostRecentCompilationHash !== __webpack_hash__;\n}\n\n// webpack disallows updates in other states.\nfunction canApplyUpdates() {\n return module.hot.status() === 'idle';\n}\n\nfunction canAcceptErrors() {\n // NOTE: This var is injected by Webpack's DefinePlugin, and is a boolean instead of string.\n const hasReactRefresh = process.env.FAST_REFRESH;\n\n const status = module.hot.status();\n // React refresh can handle hot-reloading over errors.\n // However, when hot-reload status is abort or fail,\n // it indicates the current update cannot be applied safely,\n // and thus we should bail out to a forced reload for consistency.\n return hasReactRefresh && ['abort', 'fail'].indexOf(status) === -1;\n}\n\n// Attempt to update code on the fly, fall back to a hard reload.\nfunction tryApplyUpdates(onHotUpdateSuccess) {\n if (!module.hot) {\n // HotModuleReplacementPlugin is not in webpack configuration.\n window.location.reload();\n return;\n }\n\n if (!isUpdateAvailable() || !canApplyUpdates()) {\n return;\n }\n\n function handleApplyUpdates(err, updatedModules) {\n const haveErrors = err || hadRuntimeError;\n // When there is no error but updatedModules is unavailable,\n // it indicates a critical failure in hot-reloading,\n // e.g. server is not ready to serve new bundle,\n // and hence we need to do a forced reload.\n const needsForcedReload = !err && !updatedModules;\n if ((haveErrors && !canAcceptErrors()) || needsForcedReload) {\n window.location.reload();\n return;\n }\n\n if (typeof onHotUpdateSuccess === 'function') {\n // Maybe we want to do something.\n onHotUpdateSuccess();\n }\n\n if (isUpdateAvailable()) {\n // While we were updating, there was a new update! Do it again.\n tryApplyUpdates();\n }\n }\n\n // https://webpack.github.io/docs/hot-module-replacement.html#check\n var result = module.hot.check(/* autoApply */ true, handleApplyUpdates);\n\n // // webpack 2 returns a Promise instead of invoking a callback\n if (result && result.then) {\n result.then(\n function (updatedModules) {\n handleApplyUpdates(null, updatedModules);\n },\n function (err) {\n handleApplyUpdates(err, null);\n }\n );\n }\n}\n"],"mappings":"AAAA;;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AAEA,a,CAEA;AACA;AACA;AAEA;AACA;AACA;AACA;;;;;;;;AAEA,IAAIA,SAAS,GAAGC,OAAO,CAAC,YAAD,CAAvB;;AACA,IAAIC,GAAG,GAAGD,OAAO,CAAC,KAAD,CAAjB;;AACA,IAAIE,oBAAoB,GAAGF,OAAO,CAAC,wBAAD,CAAlC;;AACA,IAAIG,qBAAqB,GAAGH,OAAO,CAAC,yBAAD,CAAnC;;AACA,IAAII,YAAY,GAAGJ,OAAO,CAAC,qBAAD,CAA1B;;AAEAI,YAAY,CAACC,gBAAb,CAA8B,SAASC,aAAT,CAAuBC,aAAvB,EAAsC;EAClE;EACAC,KAAK,CACHN,oBAAoB,GAClB,YADF,GAEEO,MAAM,CAACC,kBAAP,CAA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AgByC,MAAhB;IACA;EACD;;EAED,IAAI,CAACC,iBAAiB,EAAlB,IAAwB,CAACE,eAAe,EAA5C,EAAgD;IAC9C;EACD;;EAED,SAASO,kBAAT,CAA4BC,GAA5B,EAAiCC,cAAjC,EAAiD;IAC/C,MAAMC,UAAU,GAAGF,GAAG,IAAItE,eAA1B,CAD+C,CAE/C;IACA;IACA;IACA;;IACA,MAAMyE,iBAAiB,GAAG,CAACH,GAAD,IAAQ,CAACC,cAAnC;;IACA,IAAKC,UAAU,IAAI,CAACR,eAAe,EAA/B,IAAsCS,iBAA1C,EAA6D;MAC3D9E,MAAM,CAACuB,QAAP,CAAgByC,MAAhB;MACA;IACD;;IAED,IAAI,OAAOxB,kBAAP,KAA8B,UAAlC,EAA8C;MAC5C;MACAA,kBAAkB;IACnB;;IAED,IAAIyB,iBAAiB,EAArB,EAAyB;MACvB;MACA1B,eAAe;IAChB;EACF,CAhC0C,CAkC3C;;;EACA,IAAIwC,MAAM,GAAGtE,MAAM,CAACC,GAAP,CAAWsE,KAAX;EAAiB;EAAgB,IAAjC,EAAuCN,kBAAvC,CAAb,CAnC2C,CAqC3C;;EACA,IAAIK,MAAM,IAAIA,MAAM,CAACE,IAArB,EAA2B;IACzBF,MAAM,CAACE,IAAP,CACE,UAAUL,cAAV,EAA0B;MACxBF,kBAAkB,CAAC,IAAD,EAAOE,cAAP,CAAlB;IACD,CAHH,EAIE,UAAUD,GAAV,EAAe;MACbD,kBAAkB,CAACC,GAAD,EAAM,IAAN,CAAlB;IACD,CANH;EAQD;AACF"}
1
+ {"version":3,"names":["stripAnsi","require","url","launchEditorEndpoint","formatWebpackMessages","ErrorOverlay","setEditorHandler","editorHandler","errorLocation","fetch","window","encodeURIComponent","fileName","lineNumber","colNumber","hadRuntimeError","startReportingRuntimeErrors","onError","filename","module","hot","dispose","stopReportingRuntimeErrors","querystring","id","substring","indexOf","urlParams","URLSearchParams","connection","WebSocket","format","protocol","location","hostname","port","pathname","get","slashes","onclose","console","info","isFirstCompilation","mostRecentCompilationHash","hasCompileErrors","clearOutdatedErrors","clear","handleSuccess","isHotUpdate","tryApplyUpdates","onHotUpdateSuccess","tryDismissErrorOverlay","handleWarnings","warnings","printWarnings","formatted","errors","warn","i","length","onSuccessfulHotUpdate","handleErrors","reportBuildError","error","dismissBuildError","handleAvailableHash","hash","onmessage","e","message","JSON","parse","data","type","reload","isUpdateAvailable","__webpack_hash__","canApplyUpdates","status","canAcceptErrors","hasReactRefresh","process","env","FAST_REFRESH","handleApplyUpdates","err","updatedModules","haveErrors","needsForcedReload","result","check","then"],"sources":["webpackHotDevClient.js"],"sourcesContent":["/* eslint-disable */\n/*\n * this file was copied as is from `react-dev-utils/webpackHotDevClient`\n * and adjusted for our socket url.\n *\n * we use just set process.env.WDS_* with the EnvironmentPlugin or DefinePlugin\n * once we get react-error-overlay up and running again\n */\n\n/**\n * Copyright (c) 2015-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n'use strict';\n\n// This alternative WebpackDevServer combines the functionality of:\n// https://github.com/webpack/webpack-dev-server/blob/webpack-1/client/index.js\n// https://github.com/webpack/webpack/blob/webpack-1/hot/dev-server.js\n\n// It only supports their simplest configuration (hot updates on same server).\n// It makes some opinionated choices on top, like adding a syntax error overlay\n// that looks similar to our console output. The error overlay is inspired by:\n// https://github.com/glenjamin/webpack-hot-middleware\n\nvar stripAnsi = require('strip-ansi');\nvar url = require('url');\nvar launchEditorEndpoint = require('./launchEditorEndpoint');\nvar formatWebpackMessages = require('./formatWebpackMessages');\nvar ErrorOverlay = require('react-error-overlay');\n\nErrorOverlay.setEditorHandler(function editorHandler(errorLocation) {\n // Keep this sync with errorOverlayMiddleware.js\n fetch(\n launchEditorEndpoint +\n '?fileName=' +\n window.encodeURIComponent(errorLocation.fileName) +\n '&lineNumber=' +\n window.encodeURIComponent(errorLocation.lineNumber || 1) +\n '&colNumber=' +\n window.encodeURIComponent(errorLocation.colNumber || 1)\n );\n});\n\n// We need to keep track of if there has been a runtime error.\n// Essentially, we cannot guarantee application state was not corrupted by the\n// runtime error. To prevent confusing behavior, we forcibly reload the entire\n// application. This is handled below when we are notified of a compile (code\n// change).\n// See https://github.com/facebook/create-react-app/issues/3096\nvar hadRuntimeError = false;\nErrorOverlay.startReportingRuntimeErrors({\n onError: function () {\n hadRuntimeError = true;\n },\n filename: '/static/js/bundle.js',\n});\n\nif (module.hot && typeof module.hot.dispose === 'function') {\n module.hot.dispose(function () {\n // TODO: why do we need this?\n ErrorOverlay.stopReportingRuntimeErrors();\n });\n}\n\nconst querystring = module.id.substring(module.id.indexOf('?'));\nconst urlParams = new URLSearchParams(querystring);\n\n// Connect to WebpackDevServer via a socket.\nvar connection = new WebSocket(\n url.format({\n protocol: window.location.protocol === 'https:' ? 'wss' : 'ws',\n hostname: window.location.hostname,\n port: window.location.port,\n pathname: urlParams.get('sockPath') || '/ws',\n slashes: true,\n })\n);\n\n// Unlike WebpackDevServer client, we won't try to reconnect\n// to avoid spamming the console. Disconnect usually happens\n// when developer stops the server.\nconnection.onclose = function () {\n if (typeof console !== 'undefined' && typeof console.info === 'function') {\n console.info('The development server has disconnected.\\nRefresh the page if necessary.');\n }\n};\n\n// Remember some state related to hot module replacement.\nvar isFirstCompilation = true;\nvar mostRecentCompilationHash = null;\nvar hasCompileErrors = false;\n\nfunction clearOutdatedErrors() {\n // Clean up outdated compile errors, if any.\n if (typeof console !== 'undefined' && typeof console.clear === 'function') {\n if (hasCompileErrors) {\n console.clear();\n }\n }\n}\n\n// Successful compilation.\nfunction handleSuccess() {\n clearOutdatedErrors();\n\n var isHotUpdate = !isFirstCompilation;\n isFirstCompilation = false;\n hasCompileErrors = false;\n\n // Attempt to apply hot updates or reload.\n if (isHotUpdate) {\n tryApplyUpdates(function onHotUpdateSuccess() {\n // Only dismiss it when we're sure it's a hot update.\n // Otherwise it would flicker right before the reload.\n tryDismissErrorOverlay();\n });\n }\n}\n\n// Compilation with warnings (e.g. ESLint).\nfunction handleWarnings(warnings) {\n clearOutdatedErrors();\n\n var isHotUpdate = !isFirstCompilation;\n isFirstCompilation = false;\n hasCompileErrors = false;\n\n function printWarnings() {\n // Print warnings to the console.\n var formatted = formatWebpackMessages({\n warnings: warnings,\n errors: [],\n });\n\n if (typeof console !== 'undefined' && typeof console.warn === 'function') {\n for (var i = 0; i < formatted.warnings.length; i++) {\n if (i === 5) {\n console.warn('There were more warnings in other files.\\n' + 'You can find a complete log in the terminal.');\n break;\n }\n console.warn(stripAnsi(formatted.warnings[i]));\n }\n }\n }\n\n printWarnings();\n\n // Attempt to apply hot updates or reload.\n if (isHotUpdate) {\n tryApplyUpdates(function onSuccessfulHotUpdate() {\n // Only dismiss it when we're sure it's a hot update.\n // Otherwise it would flicker right before the reload.\n tryDismissErrorOverlay();\n });\n }\n}\n\n// Compilation with errors (e.g. syntax error or missing modules).\nfunction handleErrors(errors) {\n clearOutdatedErrors();\n\n isFirstCompilation = false;\n hasCompileErrors = true;\n\n // \"Massage\" webpack messages.\n var formatted = formatWebpackMessages({\n errors: errors,\n warnings: [],\n });\n\n // Only show the first error.\n ErrorOverlay.reportBuildError(formatted.errors[0]);\n\n // Also log them to the console.\n if (typeof console !== 'undefined' && typeof console.error === 'function') {\n for (var i = 0; i < formatted.errors.length; i++) {\n console.error(stripAnsi(formatted.errors[i]));\n }\n }\n\n // Do not attempt to reload now.\n // We will reload on next success instead.\n}\n\nfunction tryDismissErrorOverlay() {\n if (!hasCompileErrors) {\n ErrorOverlay.dismissBuildError();\n }\n}\n\n// There is a newer version of the code available.\nfunction handleAvailableHash(hash) {\n // Update last known compilation hash.\n mostRecentCompilationHash = hash;\n}\n\n// Handle messages from the server.\nconnection.onmessage = function (e) {\n var message = JSON.parse(e.data);\n switch (message.type) {\n case 'hash':\n handleAvailableHash(message.data);\n break;\n case 'still-ok':\n case 'ok':\n handleSuccess();\n break;\n case 'content-changed':\n // Triggered when a file from `contentBase` changed.\n window.location.reload();\n break;\n case 'warnings':\n handleWarnings(message.data);\n break;\n case 'errors':\n handleErrors(message.data);\n break;\n default:\n // Do nothing.\n }\n};\n\n// Is there a newer version of this code available?\nfunction isUpdateAvailable() {\n /* globals __webpack_hash__ */\n // __webpack_hash__ is the hash of the current compilation.\n // It's a global variable injected by webpack.\n return mostRecentCompilationHash !== __webpack_hash__;\n}\n\n// webpack disallows updates in other states.\nfunction canApplyUpdates() {\n return module.hot.status() === 'idle';\n}\n\nfunction canAcceptErrors() {\n // NOTE: This var is injected by Webpack's DefinePlugin, and is a boolean instead of string.\n const hasReactRefresh = process.env.FAST_REFRESH;\n\n const status = module.hot.status();\n // React refresh can handle hot-reloading over errors.\n // However, when hot-reload status is abort or fail,\n // it indicates the current update cannot be applied safely,\n // and thus we should bail out to a forced reload for consistency.\n return hasReactRefresh && ['abort', 'fail'].indexOf(status) === -1;\n}\n\n// Attempt to update code on the fly, fall back to a hard reload.\nfunction tryApplyUpdates(onHotUpdateSuccess) {\n if (!module.hot) {\n // HotModuleReplacementPlugin is not in webpack configuration.\n window.location.reload();\n return;\n }\n\n if (!isUpdateAvailable() || !canApplyUpdates()) {\n return;\n }\n\n function handleApplyUpdates(err, updatedModules) {\n const haveErrors = err || hadRuntimeError;\n // When there is no error but updatedModules is unavailable,\n // it indicates a critical failure in hot-reloading,\n // e.g. server is not ready to serve new bundle,\n // and hence we need to do a forced reload.\n const needsForcedReload = !err && !updatedModules;\n if ((haveErrors && !canAcceptErrors()) || needsForcedReload) {\n window.location.reload();\n return;\n }\n\n if (typeof onHotUpdateSuccess === 'function') {\n // Maybe we want to do something.\n onHotUpdateSuccess();\n }\n\n if (isUpdateAvailable()) {\n // While we were updating, there was a new update! Do it again.\n tryApplyUpdates();\n }\n }\n\n // https://webpack.github.io/docs/hot-module-replacement.html#check\n var result = module.hot.check(/* autoApply */ true, handleApplyUpdates);\n\n // // webpack 2 returns a Promise instead of invoking a callback\n if (result && result.then) {\n result.then(\n function (updatedModules) {\n handleApplyUpdates(null, updatedModules);\n },\n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BF,MAAM,CAACE,IAAI,CACT,UAAUL,cAAc,EAAE;MACxBF,kBAAkB,CAAC,IAAI,EAAEE,cAAc,CAAC;IAC1C,CAAC,EACD,UAAUD,GAAG,EAAE;MACbD,kBAAkB,CAACC,GAAG,EAAE,IAAI,CAAC;IAC/B,CAAC,CACF;EACH;AACF"}
@@ -8,14 +8,17 @@ const postCssConfig = {
8
8
  // Necessary for external CSS imports to work
9
9
  // https://github.com/facebook/create-react-app/issues/2677
10
10
  ident: 'postcss',
11
- plugins: [// eslint-disable-next-line global-require
12
- require.resolve('postcss-flexbugs-fixes'), // eslint-disable-next-line global-require
11
+ plugins: [
12
+ // eslint-disable-next-line global-require
13
+ require.resolve('postcss-flexbugs-fixes'),
14
+ // eslint-disable-next-line global-require
13
15
  require('postcss-preset-env')({
14
16
  autoprefixer: {
15
17
  flexbox: 'no-2009'
16
18
  },
17
19
  stage: 3
18
- }), // Adds PostCSS Normalize as the reset css with default options,
20
+ }),
21
+ // Adds PostCSS Normalize as the reset css with default options,
19
22
  // so that it honors browserslist config in package.json
20
23
  // which in turn let's users customize the target behavior as per their needs.
21
24
  require.resolve('postcss-normalize')]
@@ -1 +1 @@
1
- {"version":3,"names":["postCssConfig","ident","plugins","require","resolve","autoprefixer","flexbox","stage"],"sources":["postcss.config.ts"],"sourcesContent":["export const postCssConfig = {\n // Necessary for external CSS imports to work\n // https://github.com/facebook/create-react-app/issues/2677\n ident: 'postcss',\n plugins: [\n // eslint-disable-next-line global-require\n require.resolve('postcss-flexbugs-fixes'),\n // eslint-disable-next-line global-require\n require('postcss-preset-env')({\n autoprefixer: {\n flexbox: 'no-2009',\n },\n stage: 3,\n }),\n // Adds PostCSS Normalize as the reset css with default options,\n // so that it honors browserslist config in package.json\n // which in turn let's users customize the target behavior as per their needs.\n require.resolve('postcss-normalize'),\n ],\n};\n"],"mappings":";;;;;;AAAO,MAAMA,aAAa,GAAG;EAC3B;EACA;EACAC,KAAK,EAAE,SAHoB;EAI3BC,OAAO,EAAE,CACP;EACAC,OAAO,CAACC,OAAR,CAAgB,wBAAhB,CAFO,EAGP;EACAD,OAAO,CAAC,oBAAD,CAAP,CAA8B;IAC5BE,YAAY,EAAE;MACZC,OAAO,EAAE;IADG,CADc;IAI5BC,KAAK,EAAE;EAJqB,CAA9B,CAJO,EAUP;EACA;EACA;EACAJ,OAAO,CAACC,OAAR,CAAgB,mBAAhB,CAbO;AAJkB,CAAtB"}
1
+ {"version":3,"names":["postCssConfig","ident","plugins","require","resolve","autoprefixer","flexbox","stage"],"sources":["postcss.config.ts"],"sourcesContent":["export const postCssConfig = {\n // Necessary for external CSS imports to work\n // https://github.com/facebook/create-react-app/issues/2677\n ident: 'postcss',\n plugins: [\n // eslint-disable-next-line global-require\n require.resolve('postcss-flexbugs-fixes'),\n // eslint-disable-next-line global-require\n require('postcss-preset-env')({\n autoprefixer: {\n flexbox: 'no-2009',\n },\n stage: 3,\n }),\n // Adds PostCSS Normalize as the reset css with default options,\n // so that it honors browserslist config in package.json\n // which in turn let's users customize the target behavior as per their needs.\n require.resolve('postcss-normalize'),\n ],\n};\n"],"mappings":";;;;;;AAAO,MAAMA,aAAa,GAAG;EAC3B;EACA;EACAC,KAAK,EAAE,SAAS;EAChBC,OAAO,EAAE;EACP;EACAC,OAAO,CAACC,OAAO,CAAC,wBAAwB,CAAC;EACzC;EACAD,OAAO,CAAC,oBAAoB,CAAC,CAAC;IAC5BE,YAAY,EAAE;MACZC,OAAO,EAAE;IACX,CAAC;IACDC,KAAK,EAAE;EACT,CAAC,CAAC;EACF;EACA;EACA;EACAJ,OAAO,CAACC,OAAO,CAAC,mBAAmB,CAAC;AAExC,CAAC;AAAC"}