@remotion/bundler 3.0.0-lambda.288 → 3.0.0-lambda.295

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 (280) hide show
  1. package/dist/bundler.d.ts.map +1 -1
  2. package/dist/bundler.js +29 -11
  3. package/dist/bundler.js.map +1 -1
  4. package/dist/dev-middleware/compatible-api.d.ts +10 -0
  5. package/dist/dev-middleware/compatible-api.d.ts.map +1 -0
  6. package/dist/dev-middleware/compatible-api.js +45 -0
  7. package/dist/dev-middleware/compatible-api.js.map +1 -0
  8. package/dist/dev-middleware/get-filename-from-url.d.ts +3 -0
  9. package/dist/dev-middleware/get-filename-from-url.d.ts.map +1 -0
  10. package/dist/dev-middleware/get-filename-from-url.js +93 -0
  11. package/dist/dev-middleware/get-filename-from-url.js.map +1 -0
  12. package/dist/dev-middleware/get-paths.d.ts +8 -0
  13. package/dist/dev-middleware/get-paths.d.ts.map +1 -0
  14. package/dist/dev-middleware/get-paths.js +20 -0
  15. package/dist/dev-middleware/get-paths.js.map +1 -0
  16. package/dist/dev-middleware/index.d.ts +3 -0
  17. package/dist/dev-middleware/index.d.ts.map +1 -0
  18. package/dist/dev-middleware/index.js +58 -0
  19. package/dist/dev-middleware/index.js.map +1 -0
  20. package/dist/dev-middleware/is-color-supported.d.ts +2 -0
  21. package/dist/dev-middleware/is-color-supported.d.ts.map +1 -0
  22. package/dist/dev-middleware/is-color-supported.js +34 -0
  23. package/dist/dev-middleware/is-color-supported.js.map +1 -0
  24. package/dist/dev-middleware/middleware.d.ts +4 -0
  25. package/dist/dev-middleware/middleware.d.ts.map +1 -0
  26. package/dist/dev-middleware/middleware.js +142 -0
  27. package/dist/dev-middleware/middleware.js.map +1 -0
  28. package/dist/dev-middleware/range-parser.d.ts +16 -0
  29. package/dist/dev-middleware/range-parser.d.ts.map +1 -0
  30. package/dist/dev-middleware/range-parser.js +97 -0
  31. package/dist/dev-middleware/range-parser.js.map +1 -0
  32. package/dist/dev-middleware/ready.d.ts +6 -0
  33. package/dist/dev-middleware/ready.d.ts.map +1 -0
  34. package/dist/dev-middleware/ready.js +14 -0
  35. package/dist/dev-middleware/ready.js.map +1 -0
  36. package/dist/dev-middleware/setup-hooks.d.ts +3 -0
  37. package/dist/dev-middleware/setup-hooks.d.ts.map +1 -0
  38. package/dist/dev-middleware/setup-hooks.js +45 -0
  39. package/dist/dev-middleware/setup-hooks.js.map +1 -0
  40. package/dist/dev-middleware/setup-output-filesystem.d.ts +3 -0
  41. package/dist/dev-middleware/setup-output-filesystem.d.ts.map +1 -0
  42. package/dist/dev-middleware/setup-output-filesystem.js +14 -0
  43. package/dist/dev-middleware/setup-output-filesystem.js.map +1 -0
  44. package/dist/dev-middleware/types.d.ts +12 -0
  45. package/dist/dev-middleware/types.d.ts.map +1 -0
  46. package/dist/dev-middleware/types.js +3 -0
  47. package/dist/dev-middleware/types.js.map +1 -0
  48. package/dist/error-overlay/entry-basic.d.ts +2 -0
  49. package/dist/error-overlay/entry-basic.d.ts.map +1 -0
  50. package/dist/error-overlay/entry-basic.js +25 -0
  51. package/dist/error-overlay/entry-basic.js.map +1 -0
  52. package/dist/error-overlay/react-overlay/effects/format-warning.d.ts +12 -0
  53. package/dist/error-overlay/react-overlay/effects/format-warning.d.ts.map +1 -0
  54. package/dist/error-overlay/react-overlay/effects/format-warning.js +42 -0
  55. package/dist/error-overlay/react-overlay/effects/format-warning.js.map +1 -0
  56. package/dist/error-overlay/react-overlay/effects/map-error-to-react-stack.d.ts +8 -0
  57. package/dist/error-overlay/react-overlay/effects/map-error-to-react-stack.d.ts.map +1 -0
  58. package/dist/error-overlay/react-overlay/effects/map-error-to-react-stack.js +36 -0
  59. package/dist/error-overlay/react-overlay/effects/map-error-to-react-stack.js.map +1 -0
  60. package/dist/error-overlay/react-overlay/effects/proxy-console.d.ts +25 -0
  61. package/dist/error-overlay/react-overlay/effects/proxy-console.d.ts.map +1 -0
  62. package/dist/error-overlay/react-overlay/effects/proxy-console.js +65 -0
  63. package/dist/error-overlay/react-overlay/effects/proxy-console.js.map +1 -0
  64. package/dist/error-overlay/react-overlay/effects/resolve-file-source.d.ts +4 -0
  65. package/dist/error-overlay/react-overlay/effects/resolve-file-source.d.ts.map +1 -0
  66. package/dist/error-overlay/react-overlay/effects/resolve-file-source.js +38 -0
  67. package/dist/error-overlay/react-overlay/effects/resolve-file-source.js.map +1 -0
  68. package/dist/error-overlay/react-overlay/effects/stack-trace-limit.d.ts +4 -0
  69. package/dist/error-overlay/react-overlay/effects/stack-trace-limit.d.ts.map +1 -0
  70. package/dist/error-overlay/react-overlay/effects/stack-trace-limit.js +44 -0
  71. package/dist/error-overlay/react-overlay/effects/stack-trace-limit.js.map +1 -0
  72. package/dist/error-overlay/react-overlay/effects/unhandled-error.d.ts +5 -0
  73. package/dist/error-overlay/react-overlay/effects/unhandled-error.d.ts.map +1 -0
  74. package/dist/error-overlay/react-overlay/effects/unhandled-error.js +46 -0
  75. package/dist/error-overlay/react-overlay/effects/unhandled-error.js.map +1 -0
  76. package/dist/error-overlay/react-overlay/effects/unhandled-rejection.d.ts +5 -0
  77. package/dist/error-overlay/react-overlay/effects/unhandled-rejection.d.ts.map +1 -0
  78. package/dist/error-overlay/react-overlay/effects/unhandled-rejection.js +42 -0
  79. package/dist/error-overlay/react-overlay/effects/unhandled-rejection.js.map +1 -0
  80. package/dist/error-overlay/react-overlay/index.d.ts +9 -0
  81. package/dist/error-overlay/react-overlay/index.d.ts.map +1 -0
  82. package/dist/error-overlay/react-overlay/index.js +49 -0
  83. package/dist/error-overlay/react-overlay/index.js.map +1 -0
  84. package/dist/error-overlay/react-overlay/listen-to-runtime-errors.d.ts +10 -0
  85. package/dist/error-overlay/react-overlay/listen-to-runtime-errors.d.ts.map +1 -0
  86. package/dist/error-overlay/react-overlay/listen-to-runtime-errors.js +73 -0
  87. package/dist/error-overlay/react-overlay/listen-to-runtime-errors.js.map +1 -0
  88. package/dist/error-overlay/react-overlay/utils/get-file-source.d.ts +2 -0
  89. package/dist/error-overlay/react-overlay/utils/get-file-source.d.ts.map +1 -0
  90. package/dist/error-overlay/react-overlay/utils/get-file-source.js +22 -0
  91. package/dist/error-overlay/react-overlay/utils/get-file-source.js.map +1 -0
  92. package/dist/error-overlay/react-overlay/utils/get-lines-around.d.ts +15 -0
  93. package/dist/error-overlay/react-overlay/utils/get-lines-around.d.ts.map +1 -0
  94. package/dist/error-overlay/react-overlay/utils/get-lines-around.js +31 -0
  95. package/dist/error-overlay/react-overlay/utils/get-lines-around.js.map +1 -0
  96. package/dist/error-overlay/react-overlay/utils/get-source-map.d.ts +50 -0
  97. package/dist/error-overlay/react-overlay/utils/get-source-map.d.ts.map +1 -0
  98. package/dist/error-overlay/react-overlay/utils/get-source-map.js +105 -0
  99. package/dist/error-overlay/react-overlay/utils/get-source-map.js.map +1 -0
  100. package/dist/error-overlay/react-overlay/utils/get-stack-frames.d.ts +16 -0
  101. package/dist/error-overlay/react-overlay/utils/get-stack-frames.d.ts.map +1 -0
  102. package/dist/error-overlay/react-overlay/utils/get-stack-frames.js +43 -0
  103. package/dist/error-overlay/react-overlay/utils/get-stack-frames.js.map +1 -0
  104. package/dist/error-overlay/react-overlay/utils/mapper.d.ts +16 -0
  105. package/dist/error-overlay/react-overlay/utils/mapper.d.ts.map +1 -0
  106. package/dist/error-overlay/react-overlay/utils/mapper.js +61 -0
  107. package/dist/error-overlay/react-overlay/utils/mapper.js.map +1 -0
  108. package/dist/error-overlay/react-overlay/utils/open-in-editor.d.ts +13 -0
  109. package/dist/error-overlay/react-overlay/utils/open-in-editor.d.ts.map +1 -0
  110. package/dist/error-overlay/react-overlay/utils/open-in-editor.js +450 -0
  111. package/dist/error-overlay/react-overlay/utils/open-in-editor.js.map +1 -0
  112. package/dist/error-overlay/react-overlay/utils/parser.d.ts +14 -0
  113. package/dist/error-overlay/react-overlay/utils/parser.d.ts.map +1 -0
  114. package/dist/error-overlay/react-overlay/utils/parser.js +84 -0
  115. package/dist/error-overlay/react-overlay/utils/parser.js.map +1 -0
  116. package/dist/error-overlay/react-overlay/utils/path.d.ts +2 -0
  117. package/dist/error-overlay/react-overlay/utils/path.d.ts.map +1 -0
  118. package/dist/error-overlay/react-overlay/utils/path.js +98 -0
  119. package/dist/error-overlay/react-overlay/utils/path.js.map +1 -0
  120. package/dist/error-overlay/react-overlay/utils/settle-promise.d.ts +3 -0
  121. package/dist/error-overlay/react-overlay/utils/settle-promise.d.ts.map +1 -0
  122. package/dist/error-overlay/react-overlay/utils/settle-promise.js +20 -0
  123. package/dist/error-overlay/react-overlay/utils/settle-promise.js.map +1 -0
  124. package/dist/error-overlay/react-overlay/utils/stack-frame.d.ts +38 -0
  125. package/dist/error-overlay/react-overlay/utils/stack-frame.d.ts.map +1 -0
  126. package/dist/error-overlay/react-overlay/utils/stack-frame.js +71 -0
  127. package/dist/error-overlay/react-overlay/utils/stack-frame.js.map +1 -0
  128. package/dist/error-overlay/react-overlay/utils/unmapper.d.ts +13 -0
  129. package/dist/error-overlay/react-overlay/utils/unmapper.d.ts.map +1 -0
  130. package/dist/error-overlay/react-overlay/utils/unmapper.js +93 -0
  131. package/dist/error-overlay/react-overlay/utils/unmapper.js.map +1 -0
  132. package/dist/error-overlay/remotion-overlay/AskOnDiscord.d.ts +3 -0
  133. package/dist/error-overlay/remotion-overlay/AskOnDiscord.d.ts.map +1 -0
  134. package/dist/error-overlay/remotion-overlay/AskOnDiscord.js +15 -0
  135. package/dist/error-overlay/remotion-overlay/AskOnDiscord.js.map +1 -0
  136. package/dist/error-overlay/remotion-overlay/Button.d.ts +6 -0
  137. package/dist/error-overlay/remotion-overlay/Button.d.ts.map +1 -0
  138. package/dist/error-overlay/remotion-overlay/Button.js +25 -0
  139. package/dist/error-overlay/remotion-overlay/Button.js.map +1 -0
  140. package/dist/error-overlay/remotion-overlay/CodeFrame.d.ts +7 -0
  141. package/dist/error-overlay/remotion-overlay/CodeFrame.d.ts.map +1 -0
  142. package/dist/error-overlay/remotion-overlay/CodeFrame.js +29 -0
  143. package/dist/error-overlay/remotion-overlay/CodeFrame.js.map +1 -0
  144. package/dist/error-overlay/remotion-overlay/DismissButton.d.ts +3 -0
  145. package/dist/error-overlay/remotion-overlay/DismissButton.d.ts.map +1 -0
  146. package/dist/error-overlay/remotion-overlay/DismissButton.js +24 -0
  147. package/dist/error-overlay/remotion-overlay/DismissButton.js.map +1 -0
  148. package/dist/error-overlay/remotion-overlay/ErrorDisplay.d.ts +6 -0
  149. package/dist/error-overlay/remotion-overlay/ErrorDisplay.d.ts.map +1 -0
  150. package/dist/error-overlay/remotion-overlay/ErrorDisplay.js +80 -0
  151. package/dist/error-overlay/remotion-overlay/ErrorDisplay.js.map +1 -0
  152. package/dist/error-overlay/remotion-overlay/OpenInEditor.d.ts +6 -0
  153. package/dist/error-overlay/remotion-overlay/OpenInEditor.d.ts.map +1 -0
  154. package/dist/error-overlay/remotion-overlay/OpenInEditor.js +92 -0
  155. package/dist/error-overlay/remotion-overlay/OpenInEditor.js.map +1 -0
  156. package/dist/error-overlay/remotion-overlay/Overlay.d.ts +17 -0
  157. package/dist/error-overlay/remotion-overlay/Overlay.d.ts.map +1 -0
  158. package/dist/error-overlay/remotion-overlay/Overlay.js +35 -0
  159. package/dist/error-overlay/remotion-overlay/Overlay.js.map +1 -0
  160. package/dist/error-overlay/remotion-overlay/SearchGitHubIssues.d.ts +5 -0
  161. package/dist/error-overlay/remotion-overlay/SearchGitHubIssues.d.ts.map +1 -0
  162. package/dist/error-overlay/remotion-overlay/SearchGitHubIssues.js +14 -0
  163. package/dist/error-overlay/remotion-overlay/SearchGitHubIssues.js.map +1 -0
  164. package/dist/error-overlay/remotion-overlay/StackFrame.d.ts +9 -0
  165. package/dist/error-overlay/remotion-overlay/StackFrame.d.ts.map +1 -0
  166. package/dist/error-overlay/remotion-overlay/StackFrame.js +44 -0
  167. package/dist/error-overlay/remotion-overlay/StackFrame.js.map +1 -0
  168. package/dist/error-overlay/remotion-overlay/carets.d.ts +3 -0
  169. package/dist/error-overlay/remotion-overlay/carets.d.ts.map +1 -0
  170. package/dist/error-overlay/remotion-overlay/carets.js +13 -0
  171. package/dist/error-overlay/remotion-overlay/carets.js.map +1 -0
  172. package/dist/error-overlay/remotion-overlay/format-location.d.ts +2 -0
  173. package/dist/error-overlay/remotion-overlay/format-location.d.ts.map +1 -0
  174. package/dist/error-overlay/remotion-overlay/format-location.js +11 -0
  175. package/dist/error-overlay/remotion-overlay/format-location.js.map +1 -0
  176. package/dist/error-overlay/remotion-overlay/index.d.ts +2 -0
  177. package/dist/error-overlay/remotion-overlay/index.d.ts.map +1 -0
  178. package/dist/error-overlay/remotion-overlay/index.js +14 -0
  179. package/dist/error-overlay/remotion-overlay/index.js.map +1 -0
  180. package/dist/fast-refresh/helpers.d.ts +15 -7
  181. package/dist/fast-refresh/helpers.d.ts.map +1 -1
  182. package/dist/fast-refresh/helpers.js +33 -25
  183. package/dist/fast-refresh/helpers.js.map +1 -1
  184. package/dist/fast-refresh/{fast-refresh.d.ts → index.d.ts} +4 -1
  185. package/dist/fast-refresh/index.d.ts.map +1 -0
  186. package/dist/fast-refresh/index.js +60 -0
  187. package/dist/fast-refresh/index.js.map +1 -0
  188. package/dist/fast-refresh/loader.d.ts +12 -2
  189. package/dist/fast-refresh/loader.d.ts.map +1 -1
  190. package/dist/fast-refresh/loader.js +13 -37
  191. package/dist/fast-refresh/loader.js.map +1 -1
  192. package/dist/fast-refresh/runtime.d.ts +12 -2
  193. package/dist/fast-refresh/runtime.d.ts.map +1 -1
  194. package/dist/fast-refresh/runtime.js +8 -27
  195. package/dist/fast-refresh/runtime.js.map +1 -1
  196. package/dist/hot-middleware/client.d.ts +20 -0
  197. package/dist/hot-middleware/client.d.ts.map +1 -0
  198. package/dist/hot-middleware/client.js +208 -0
  199. package/dist/hot-middleware/client.js.map +1 -0
  200. package/dist/hot-middleware/index.d.ts +14 -0
  201. package/dist/hot-middleware/index.d.ts.map +1 -0
  202. package/dist/hot-middleware/index.js +181 -0
  203. package/dist/hot-middleware/index.js.map +1 -0
  204. package/dist/hot-middleware/process-update.d.ts +13 -0
  205. package/dist/hot-middleware/process-update.d.ts.map +1 -0
  206. package/dist/hot-middleware/process-update.js +149 -0
  207. package/dist/hot-middleware/process-update.js.map +1 -0
  208. package/dist/hot-middleware/strip-ansi.d.ts +2 -0
  209. package/dist/hot-middleware/strip-ansi.d.ts.map +1 -0
  210. package/dist/hot-middleware/strip-ansi.js +22 -0
  211. package/dist/hot-middleware/strip-ansi.js.map +1 -0
  212. package/dist/hot-middleware/types.d.ts +39 -0
  213. package/dist/hot-middleware/types.d.ts.map +1 -0
  214. package/dist/hot-middleware/types.js +18 -0
  215. package/dist/hot-middleware/types.js.map +1 -0
  216. package/dist/index.d.ts +0 -1
  217. package/dist/index.d.ts.map +1 -1
  218. package/dist/renderEntry.js +2 -2
  219. package/dist/renderEntry.js.map +1 -1
  220. package/dist/setup-environment.js +1 -0
  221. package/dist/setup-environment.js.map +1 -1
  222. package/dist/start-server.d.ts +0 -1
  223. package/dist/start-server.d.ts.map +1 -1
  224. package/dist/start-server.js +58 -14
  225. package/dist/start-server.js.map +1 -1
  226. package/dist/static-preview.d.ts +1 -1
  227. package/dist/static-preview.d.ts.map +1 -1
  228. package/dist/static-preview.js +8 -2
  229. package/dist/static-preview.js.map +1 -1
  230. package/dist/test/expect-to-throw.d.ts +2 -0
  231. package/dist/test/expect-to-throw.d.ts.map +1 -0
  232. package/dist/test/expect-to-throw.js +15 -0
  233. package/dist/test/expect-to-throw.js.map +1 -0
  234. package/dist/test/parse-error-stack.test.d.ts +2 -0
  235. package/dist/test/parse-error-stack.test.d.ts.map +1 -0
  236. package/dist/test/parse-error-stack.test.js +18 -0
  237. package/dist/test/parse-error-stack.test.js.map +1 -0
  238. package/dist/test/secure-source-read.test.d.ts +2 -0
  239. package/dist/test/secure-source-read.test.d.ts.map +1 -0
  240. package/dist/test/secure-source-read.test.js +9 -0
  241. package/dist/test/secure-source-read.test.js.map +1 -0
  242. package/dist/update-available.d.ts +1 -1
  243. package/dist/update-available.d.ts.map +1 -1
  244. package/dist/webpack-cache.d.ts +0 -1
  245. package/dist/webpack-cache.d.ts.map +1 -1
  246. package/dist/webpack-cache.js +2 -3
  247. package/dist/webpack-cache.js.map +1 -1
  248. package/dist/webpack-config.d.ts +1 -2
  249. package/dist/webpack-config.d.ts.map +1 -1
  250. package/dist/webpack-config.js +14 -11
  251. package/dist/webpack-config.js.map +1 -1
  252. package/package.json +12 -8
  253. package/dist/env-variables.d.ts +0 -2
  254. package/dist/env-variables.d.ts.map +0 -1
  255. package/dist/env-variables.js +0 -5
  256. package/dist/env-variables.js.map +0 -1
  257. package/dist/fast-refresh/error-overlay/entry-basic.d.ts +0 -3
  258. package/dist/fast-refresh/error-overlay/entry-basic.d.ts.map +0 -1
  259. package/dist/fast-refresh/error-overlay/entry-basic.js +0 -27
  260. package/dist/fast-refresh/error-overlay/entry-basic.js.map +0 -1
  261. package/dist/fast-refresh/error-overlay/entry-devserver.d.ts +0 -8
  262. package/dist/fast-refresh/error-overlay/entry-devserver.d.ts.map +0 -1
  263. package/dist/fast-refresh/error-overlay/entry-devserver.js +0 -36
  264. package/dist/fast-refresh/error-overlay/entry-devserver.js.map +0 -1
  265. package/dist/fast-refresh/error-overlay/index.d.ts +0 -7
  266. package/dist/fast-refresh/error-overlay/index.d.ts.map +0 -1
  267. package/dist/fast-refresh/error-overlay/index.js +0 -92
  268. package/dist/fast-refresh/error-overlay/index.js.map +0 -1
  269. package/dist/fast-refresh/fast-refresh.d.ts.map +0 -1
  270. package/dist/fast-refresh/fast-refresh.js +0 -98
  271. package/dist/fast-refresh/fast-refresh.js.map +0 -1
  272. package/dist/hot-middleware.d.ts +0 -28
  273. package/dist/hot-middleware.d.ts.map +0 -1
  274. package/dist/hot-middleware.js +0 -119
  275. package/dist/hot-middleware.js.map +0 -1
  276. package/dist/setup-env-variables.d.ts +0 -2
  277. package/dist/setup-env-variables.d.ts.map +0 -1
  278. package/dist/setup-env-variables.js +0 -5
  279. package/dist/setup-env-variables.js.map +0 -1
  280. package/web/index.html +0 -21
@@ -1,36 +0,0 @@
1
- "use strict";
2
- // @ts-check
3
- const querystring = require('querystring');
4
- const url = require('url');
5
- const SockJS = require('sockjs-client');
6
- const formatWebpackMessages = require('react-dev-utils/formatWebpackMessages');
7
- const { reportBuildError, dismissBuildError } = require('react-error-overlay');
8
- let sockOptions = {};
9
- if (typeof __resourceQuery === 'string' && __resourceQuery.length > 1) {
10
- sockOptions = querystring.parse(__resourceQuery.substr(1));
11
- }
12
- const connection = new SockJS(url.format({
13
- protocol: window.location.protocol,
14
- hostname: sockOptions.sockHost || window.location.hostname,
15
- port: sockOptions.sockPort || window.location.port,
16
- pathname: sockOptions.sockPath || '/sockjs-node',
17
- }));
18
- connection.onmessage = function onmessage(e) {
19
- const { type, data } = JSON.parse(e.data);
20
- let formatted;
21
- switch (type) {
22
- case 'ok':
23
- dismissBuildError();
24
- break;
25
- case 'errors':
26
- formatted = formatWebpackMessages({
27
- errors: data,
28
- warnings: [],
29
- });
30
- reportBuildError(formatted.errors[0]);
31
- break;
32
- default:
33
- // Do nothing.
34
- }
35
- };
36
- //# sourceMappingURL=entry-devserver.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"entry-devserver.js","sourceRoot":"","sources":["../../../src/fast-refresh/error-overlay/entry-devserver.ts"],"names":[],"mappings":";AAAA,YAAY;AACZ,MAAM,WAAW,GAAG,OAAO,CAAC,aAAa,CAAC,CAAC;AAC3C,MAAM,GAAG,GAAG,OAAO,CAAC,KAAK,CAAC,CAAC;AAC3B,MAAM,MAAM,GAAG,OAAO,CAAC,eAAe,CAAC,CAAC;AACxC,MAAM,qBAAqB,GAAG,OAAO,CAAC,uCAAuC,CAAC,CAAC;AAC/E,MAAM,EAAC,gBAAgB,EAAE,iBAAiB,EAAC,GAAG,OAAO,CAAC,qBAAqB,CAAC,CAAC;AAE7E,IAAI,WAAW,GAAG,EAAE,CAAC;AACrB,IAAI,OAAO,eAAe,KAAK,QAAQ,IAAI,eAAe,CAAC,MAAM,GAAG,CAAC,EAAE;IACtE,WAAW,GAAG,WAAW,CAAC,KAAK,CAAC,eAAe,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,CAAC;CAC3D;AAED,MAAM,UAAU,GAAG,IAAI,MAAM,CAC5B,GAAG,CAAC,MAAM,CAAC;IACV,QAAQ,EAAE,MAAM,CAAC,QAAQ,CAAC,QAAQ;IAClC,QAAQ,EAAE,WAAW,CAAC,QAAQ,IAAI,MAAM,CAAC,QAAQ,CAAC,QAAQ;IAC1D,IAAI,EAAE,WAAW,CAAC,QAAQ,IAAI,MAAM,CAAC,QAAQ,CAAC,IAAI;IAClD,QAAQ,EAAE,WAAW,CAAC,QAAQ,IAAI,cAAc;CAChD,CAAC,CACF,CAAC;AAEF,UAAU,CAAC,SAAS,GAAG,SAAS,SAAS,CAAC,CAAC;IAC1C,MAAM,EAAC,IAAI,EAAE,IAAI,EAAC,GAAG,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC;IACxC,IAAI,SAAS,CAAC;IACd,QAAQ,IAAI,EAAE;QACb,KAAK,IAAI;YACR,iBAAiB,EAAE,CAAC;YACpB,MAAM;QACP,KAAK,QAAQ;YACZ,SAAS,GAAG,qBAAqB,CAAC;gBACjC,MAAM,EAAE,IAAI;gBACZ,QAAQ,EAAE,EAAE;aACZ,CAAC,CAAC;YACH,gBAAgB,CAAC,SAAS,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,CAAC;YACtC,MAAM;QACP,QAAQ;QACR,cAAc;KACd;AACF,CAAC,CAAC"}
@@ -1,7 +0,0 @@
1
- import webpack from 'webpack';
2
- /** @typedef {{ sockHost: string, sockPath: string, sockPort: number }} SockOptions */
3
- /** @typedef {{ dependOn?: [string, ...string[]], filename?: any, import: [string, ...string[]], library?: any }} EntryDescriptionNormalized */
4
- export declare class ErrorOverlayPlugin {
5
- apply(compiler: webpack.Compiler): void;
6
- }
7
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/fast-refresh/error-overlay/index.ts"],"names":[],"mappings":"AAAA,OAAO,OAAO,MAAM,SAAS,CAAC;AAS9B,sFAAsF;AACtF,+IAA+I;AAE/I,qBAAa,kBAAkB;IAC9B,KAAK,CAAC,QAAQ,EAAE,OAAO,CAAC,QAAQ;CAkDhC"}
@@ -1,92 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.ErrorOverlayPlugin = void 0;
4
- // @ts-check
5
- const errorOverlayMiddleware = require('react-dev-utils/errorOverlayMiddleware');
6
- const chunkPathBasic = require.resolve('./entry-basic');
7
- const chunkPathDevServer = require.resolve('./entry-devserver');
8
- let deps = [];
9
- /** @typedef {{ sockHost: string, sockPath: string, sockPort: number }} SockOptions */
10
- /** @typedef {{ dependOn?: [string, ...string[]], filename?: any, import: [string, ...string[]], library?: any }} EntryDescriptionNormalized */
11
- class ErrorOverlayPlugin {
12
- apply(compiler) {
13
- const className = this.constructor.name;
14
- if (compiler.options.mode !== 'development') {
15
- return;
16
- }
17
- const devServerEnabled = Boolean(compiler.options.devServer);
18
- const usingSocket = devServerEnabled && typeof compiler.options.devServer.socket === 'string';
19
- /** @type { SockOptions } */
20
- const sockOptions = {};
21
- if (devServerEnabled && usingSocket) {
22
- sockOptions.sockHost = compiler.options.devServer.sockHost;
23
- sockOptions.sockPath = compiler.options.devServer.sockPath;
24
- sockOptions.sockPort = compiler.options.devServer.sockPort;
25
- }
26
- compiler.hooks.entryOption.tap(className, (context, entry) => {
27
- if (typeof entry !== 'function') {
28
- Object.keys(entry).forEach((entryName) => {
29
- if (deps.includes(entryName)) {
30
- // Skip dependencies, only inject real entry points
31
- return;
32
- }
33
- entry[entryName] = adjustEntry(entry[entryName], devServerEnabled, usingSocket, sockOptions);
34
- });
35
- }
36
- });
37
- compiler.hooks.afterResolvers.tap(className, ({ options }) => {
38
- if (devServerEnabled) {
39
- const originalBefore = options.devServer.before;
40
- options.devServer.before = (app, server) => {
41
- if (originalBefore) {
42
- originalBefore(app, server);
43
- }
44
- app.use(errorOverlayMiddleware());
45
- };
46
- }
47
- });
48
- }
49
- }
50
- exports.ErrorOverlayPlugin = ErrorOverlayPlugin;
51
- /**
52
- * Puts dev server chunk path in front of other entries
53
- * @param {EntryDescriptionNormalized} entry
54
- * @param {boolean} enableDevServer
55
- * @param {boolean} usingSocket
56
- * @param {SockOptions} sockOptions
57
- * @returns {EntryDescriptionNormalized}
58
- */
59
- function adjustEntry(entry, enableDevServer, usingSocket, sockOptions) {
60
- if (entry.dependOn) {
61
- deps = [...deps, ...entry.dependOn];
62
- }
63
- if (entry.library) {
64
- // skip libraries
65
- return entry;
66
- }
67
- if (typeof entry.import === 'string') {
68
- entry.import = [entry.import];
69
- }
70
- if (enableDevServer && usingSocket) {
71
- const sockHost = sockOptions.sockHost
72
- ? ` & sockHost = ${sockOptions.sockHost}`
73
- : '';
74
- const sockPath = sockOptions.sockPath
75
- ? ` & sockPath = ${sockOptions.sockPath}`
76
- : '';
77
- const sockPort = sockOptions.sockPort
78
- ? ` & sockPort = ${sockOptions.sockPort}`
79
- : '';
80
- const chunkPathDevServerWithParams = `${chunkPathDevServer} ? ${sockHost}
81
- ${sockPath}
82
- ${sockPort}`;
83
- if (!entry.import.includes(chunkPathDevServerWithParams)) {
84
- entry.import.unshift(chunkPathDevServerWithParams);
85
- }
86
- }
87
- if (!entry.import.includes(chunkPathBasic)) {
88
- entry.import.unshift(chunkPathBasic);
89
- }
90
- return entry;
91
- }
92
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/fast-refresh/error-overlay/index.ts"],"names":[],"mappings":";;;AAEA,YAAY;AACZ,MAAM,sBAAsB,GAAG,OAAO,CAAC,wCAAwC,CAAC,CAAC;AAEjF,MAAM,cAAc,GAAG,OAAO,CAAC,OAAO,CAAC,eAAe,C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AAC,QAAQ;YACpC,CAAC,CAAC,iBAAiB,WAAW,CAAC,QAAQ,EAAE;YACzC,CAAC,CAAC,EAAE,CAAC;QACN,MAAM,QAAQ,GAAG,WAAW,CAAC,QAAQ;YACpC,CAAC,CAAC,iBAAiB,WAAW,CAAC,QAAQ,EAAE;YACzC,CAAC,CAAC,EAAE,CAAC;QACN,MAAM,4BAA4B,GAAG,GAAG,kBAAkB,MAAM,QAAQ;UAChE,QAAQ;UACR,QAAQ,EAAE,CAAC;QACnB,IAAI,CAAC,KAAK,CAAC,MAAM,CAAC,QAAQ,CAAC,4BAA4B,CAAC,EAAE;YACzD,KAAK,CAAC,MAAM,CAAC,OAAO,CAAC,4BAA4B,CAAC,CAAC;SACnD;KACD;IAED,IAAI,CAAC,KAAK,CAAC,MAAM,CAAC,QAAQ,CAAC,cAAc,CAAC,EAAE;QAC3C,KAAK,CAAC,MAAM,CAAC,OAAO,CAAC,cAAc,CAAC,CAAC;KACrC;IAED,OAAO,KAAK,CAAC;AACd,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"fast-refresh.d.ts","sourceRoot":"","sources":["../../src/fast-refresh/fast-refresh.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;GAsBG;AAEH,OAAO,OAAO,MAAM,SAAS,CAAC;AA2C9B,qBAAa,uBAAuB;IACnC,KAAK,CAAC,QAAQ,EAAE,OAAO,CAAC,QAAQ;CAkDhC"}
@@ -1,98 +0,0 @@
1
- "use strict";
2
- /**
3
- * The MIT License (MIT)
4
- *
5
- * Copyright (c) 2020 Vercel, Inc.
6
- *
7
- * Permission is hereby granted, free of charge, to any person obtaining a copy
8
- * of this software and associated documentation files (the "Software"), to deal
9
- * in the Software without restriction, including without limitation the rights
10
- * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
11
- * copies of the Software, and to permit persons to whom the Software is
12
- * furnished to do so, subject to the following conditions:
13
- *
14
- * The above copyright notice and this permission notice shall be included in all
15
- * copies or substantial portions of the Software.
16
- *
17
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
18
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
19
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
20
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
21
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
22
- * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
23
- * SOFTWARE.
24
- */
25
- Object.defineProperty(exports, "__esModule", { value: true });
26
- exports.ReactFreshWebpackPlugin = void 0;
27
- // This file is copied from the @vercel/next.js, with removed TS annotations
28
- // minor tweaks, and removed all webpack v4-related functionality
29
- //
30
- // https://github.com/vercel/next.js/blob/canary/packages/react-refresh-utils/ReactRefreshWebpackPlugin.ts
31
- const { Template, RuntimeModule, RuntimeGlobals, version } = require('webpack');
32
- class ReactRefreshRuntimeModule extends RuntimeModule {
33
- constructor() {
34
- super('react refresh', 5);
35
- }
36
- generate() {
37
- const { runtimeTemplate } = this.compilation;
38
- return Template.asString([
39
- `${RuntimeGlobals.interceptModuleExecution}.push(${runtimeTemplate.basicFunction('options', [
40
- `const originalFactory = options.factory;`,
41
- `options.factory = ${runtimeTemplate.basicFunction('moduleObject, moduleExports, webpackRequire', [
42
- // Legacy CSS implementations will `eval` browser code in a Node.js
43
- // context to extract CSS. For backwards compatibility, we need to check
44
- // we're in a browser context before continuing.
45
- `const hasRefresh = typeof self !== "undefined" && !!self.$RefreshInterceptModuleExecution$;`,
46
- `const cleanup = hasRefresh ? self.$RefreshInterceptModuleExecution$(moduleObject.id) : () => {};`,
47
- 'try {',
48
- Template.indent('originalFactory.call(this, moduleObject, moduleExports, webpackRequire);'),
49
- '} finally {',
50
- Template.indent(`cleanup();`),
51
- '}',
52
- ])}`,
53
- ])})`,
54
- ]);
55
- }
56
- }
57
- class ReactFreshWebpackPlugin {
58
- apply(compiler) {
59
- // eslint-disable-next-line no-eq-null
60
- const webpackMajorVersion = parseInt(version == null ? '' : version, 10);
61
- if (webpackMajorVersion < 5) {
62
- throw new Error(`ReactFreshWebpackPlugin does not support webpack v${webpackMajorVersion}.`);
63
- }
64
- compiler.hooks.beforeCompile.tap(this.constructor.name, (file) => {
65
- console.log('before compile', Date.now());
66
- });
67
- compiler.hooks.done.tap(this.constructor.name, (file) => {
68
- console.log('DONE', Date.now());
69
- });
70
- compiler.hooks.emit.tap(this.constructor.name, (file) => {
71
- console.log('EMITTED', Date.now(), file.assets);
72
- });
73
- compiler.hooks.compilation.tap(this.constructor.name, (compilation) => {
74
- console.log('TAPPING', Date.now());
75
- compilation.hooks.rebuildModule.tap('ggg', () => {
76
- console.log('rebuilt');
77
- });
78
- compilation.mainTemplate.hooks.localVars.tap(this.constructor.name, (source) => Template.asString([
79
- source,
80
- '',
81
- '// noop fns to prevent runtime errors during initialization',
82
- 'if (typeof self !== "undefined") {',
83
- Template.indent('self.$RefreshReg$ = function () {};'),
84
- Template.indent('self.$RefreshSig$ = function () {'),
85
- Template.indent(Template.indent('return function (type) {')),
86
- Template.indent(Template.indent(Template.indent('return type;'))),
87
- Template.indent(Template.indent('};')),
88
- Template.indent('};'),
89
- '}',
90
- ]));
91
- compilation.hooks.additionalTreeRuntimeRequirements.tap(this.constructor.name, (chunk) => {
92
- compilation.addRuntimeModule(chunk, new ReactRefreshRuntimeModule());
93
- });
94
- });
95
- }
96
- }
97
- exports.ReactFreshWebpackPlugin = ReactFreshWebpackPlugin;
98
- //# sourceMappingURL=fast-refresh.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"fast-refresh.js","sourceRoot":"","sources":["../../src/fast-refresh/fast-refresh.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;;;;GAsBG;;;AAIH,4EAA4E;AAC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AA0B,CAAC,CAAC;gBAC5D,QAAQ,CAAC,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,cAAc,CAAC,CAAC,CAAC;gBACjE,QAAQ,CAAC,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC;gBACtC,QAAQ,CAAC,MAAM,CAAC,IAAI,CAAC;gBACrB,GAAG;aACH,CAAC,CACH,CAAC;YAEF,WAAW,CAAC,KAAK,CAAC,iCAAiC,CAAC,GAAG,CACtD,IAAI,CAAC,WAAW,CAAC,IAAI,EACrB,CAAC,KAAU,EAAE,EAAE;gBACd,WAAW,CAAC,gBAAgB,CAAC,KAAK,EAAE,IAAI,yBAAyB,EAAE,CAAC,CAAC;YACtE,CAAC,CACD,CAAC;QACH,CAAC,CAAC,CAAC;IACJ,CAAC;CACD;AAnDD,0DAmDC"}
@@ -1,28 +0,0 @@
1
- import webpack from 'webpack';
2
- import type ws from 'ws';
3
- export declare class WebpackHotMiddleware {
4
- eventStream: EventStream;
5
- latestStats: webpack.Stats | null;
6
- clientLatestStats: webpack.Stats | null;
7
- closed: boolean;
8
- serverError: boolean;
9
- constructor(compilers: webpack.Compiler[]);
10
- onServerInvalid: () => void;
11
- onClientInvalid: () => void;
12
- onServerDone: (statsResult: webpack.Stats) => void;
13
- onClientDone: (statsResult: webpack.Stats) => void;
14
- onHMR: (client: ws) => void;
15
- publishStats: (action: string, statsResult: webpack.Stats) => void;
16
- publish: (payload: any) => void;
17
- close: () => void;
18
- }
19
- declare class EventStream {
20
- clients: Set<ws>;
21
- constructor();
22
- everyClient(fn: (client: ws) => void): void;
23
- close(): void;
24
- handler(client: ws): void;
25
- publish(payload: any): void;
26
- }
27
- export {};
28
- //# sourceMappingURL=hot-middleware.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"hot-middleware.d.ts","sourceRoot":"","sources":["../src/hot-middleware.ts"],"names":[],"mappings":"AAuBA,OAAO,OAAO,MAAM,SAAS,CAAC;AAC9B,OAAO,KAAK,EAAE,MAAM,IAAI,CAAC;AAEzB,qBAAa,oBAAoB;IAChC,WAAW,EAAE,WAAW,CAAC;IACzB,WAAW,EAAE,OAAO,CAAC,KAAK,GAAG,IAAI,CAAC;IAClC,iBAAiB,EAAE,OAAO,CAAC,KAAK,GAAG,IAAI,CAAC;IACxC,MAAM,EAAE,OAAO,CAAC;IAChB,WAAW,EAAE,OAAO,CAAC;gBAET,SAAS,EAAE,OAAO,CAAC,QAAQ,EAAE;IAoBzC,eAAe,aASb;IAEF,eAAe,aAIb;IAEF,YAAY,gBAAiB,QAAQ,KAAK,UAWxC;IAEF,YAAY,gBAAiB,QAAQ,KAAK,UAOxC;IAEF,KAAK,WAAY,EAAE,UAQjB;IAEF,YAAY,WAAY,MAAM,eAAe,QAAQ,KAAK,UAcxD;IAEF,OAAO,YAAa,GAAG,UAGrB;IAEF,KAAK,aAMH;CACF;AAED,cAAM,WAAW;IAChB,OAAO,EAAE,GAAG,CAAC,EAAE,CAAC,CAAC;;IAKjB,WAAW,CAAC,EAAE,EAAE,CAAC,MAAM,EAAE,EAAE,KAAK,IAAI;IAMpC,KAAK;IAOL,OAAO,CAAC,MAAM,EAAE,EAAE;IAOlB,OAAO,CAAC,OAAO,EAAE,GAAG;CAKpB"}
@@ -1,119 +0,0 @@
1
- "use strict";
2
- // Based on https://github.com/webpack-contrib/webpack-hot-middleware/blob/9708d781ae0e46179cf8ea1a94719de4679aaf53/middleware.js
3
- // Included License below
4
- Object.defineProperty(exports, "__esModule", { value: true });
5
- exports.WebpackHotMiddleware = void 0;
6
- class WebpackHotMiddleware {
7
- constructor(compilers) {
8
- this.onServerInvalid = () => {
9
- if (!this.serverError)
10
- return;
11
- this.serverError = false;
12
- if (this.clientLatestStats) {
13
- this.latestStats = this.clientLatestStats;
14
- this.publishStats('built', this.latestStats);
15
- }
16
- };
17
- this.onClientInvalid = () => {
18
- if (this.closed || this.serverError)
19
- return;
20
- this.latestStats = null;
21
- this.eventStream.publish({ action: 'building' });
22
- };
23
- this.onServerDone = (statsResult) => {
24
- if (this.closed)
25
- return;
26
- // Keep hold of latest stats so they can be propagated to new clients
27
- // this.latestStats = statsResult
28
- // this.publishStats('built', this.latestStats)
29
- this.serverError = statsResult.hasErrors();
30
- if (this.serverError) {
31
- this.latestStats = statsResult;
32
- this.publishStats('built', this.latestStats);
33
- }
34
- };
35
- this.onClientDone = (statsResult) => {
36
- this.clientLatestStats = statsResult;
37
- if (this.closed || this.serverError)
38
- return;
39
- // Keep hold of latest stats so they can be propagated to new clients
40
- this.latestStats = statsResult;
41
- this.publishStats('built', this.latestStats);
42
- };
43
- this.onHMR = (client) => {
44
- if (this.closed)
45
- return;
46
- this.eventStream.handler(client);
47
- if (this.latestStats) {
48
- // Explicitly not passing in `log` fn as we don't want to log again on
49
- // the server
50
- this.publishStats('sync', this.latestStats);
51
- }
52
- };
53
- this.publishStats = (action, statsResult) => {
54
- const stats = statsResult.toJson({
55
- all: false,
56
- hash: true,
57
- warnings: true,
58
- errors: true,
59
- });
60
- this.eventStream.publish({
61
- action,
62
- hash: stats.hash,
63
- warnings: stats.warnings || [],
64
- errors: stats.errors || [],
65
- });
66
- };
67
- this.publish = (payload) => {
68
- if (this.closed)
69
- return;
70
- this.eventStream.publish(payload);
71
- };
72
- this.close = () => {
73
- if (this.closed)
74
- return;
75
- // Can't remove compiler plugins, so we just set a flag and noop if closed
76
- // https://github.com/webpack/tapable/issues/32#issuecomment-350644466
77
- this.closed = true;
78
- this.eventStream.close();
79
- };
80
- this.eventStream = new EventStream();
81
- this.latestStats = null;
82
- this.clientLatestStats = null;
83
- this.serverError = false;
84
- this.closed = false;
85
- compilers[0].hooks.invalid.tap('webpack-hot-middleware', this.onClientInvalid);
86
- compilers[0].hooks.done.tap('webpack-hot-middleware', this.onClientDone);
87
- compilers[1].hooks.invalid.tap('webpack-hot-middleware', this.onServerInvalid);
88
- compilers[1].hooks.done.tap('webpack-hot-middleware', this.onServerDone);
89
- }
90
- }
91
- exports.WebpackHotMiddleware = WebpackHotMiddleware;
92
- class EventStream {
93
- constructor() {
94
- this.clients = new Set();
95
- }
96
- everyClient(fn) {
97
- for (const client of this.clients) {
98
- fn(client);
99
- }
100
- }
101
- close() {
102
- this.everyClient((client) => {
103
- client.close();
104
- });
105
- this.clients.clear();
106
- }
107
- handler(client) {
108
- this.clients.add(client);
109
- client.addEventListener('close', () => {
110
- this.clients.delete(client);
111
- });
112
- }
113
- publish(payload) {
114
- this.everyClient((client) => {
115
- client.send(JSON.stringify(payload));
116
- });
117
- }
118
- }
119
- //# sourceMappingURL=hot-middleware.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"hot-middleware.js","sourceRoot":"","sources":["../src/hot-middleware.ts"],"names":[],"mappings":";AAAA,iIAAiI;AACjI,yBAAyB;;;AAyBzB,MAAa,oBAAoB;IAOhC,YAAY,SAA6B;QAoBzC,oBAAe,GAAG,GAAG,EAAE;YACtB,IAAI,CAAC,IAAI,CAAC,WAAW;gBAAE,OAAO;YAE9B,IAAI,CAAC,WAAW,GAAG,KAAK,CAAC;YAEzB,IAAI,IAAI,CAAC,iBAAiB,EAAE;gBAC3B,IAAI,CAAC,WAAW,GAAG,IAAI,CAAC,iBAAiB,CAAC;gBAC1C,IAAI,CAAC,YAAY,CAAC,OAAO,EAAE,IAAI,CAAC,WAAW,CAAC,CAAC;aAC7C;QACF,CAAC,CAAC;QAEF,oBAAe,GAAG,GAAG,EAAE;YACtB,IAAI,IAAI,CAAC,MAAM,IAAI,IAAI,CAAC,WAAW;gBAAE,OAAO;YAC5C,IAAI,CAAC,WAAW,GAAG,IAAI,CAAC;YACxB,IAAI,CAAC,WAAW,CAAC,OAAO,CAAC,EAAC,MAAM,EAAE,UAAU,EAAC,CAAC,CAAC;QAChD,CAAC,CAAC;QAEF,iBAAY,GAAG,CAAC,WAA0B,EAAE,EAAE;YAC7C,IAAI,IAAI,CAAC,MAAM;gBAAE,OAAO;YACxB,qEAAqE;YACrE,iC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QACC,IAAI,CAAC,OAAO,GAAG,IAAI,GAAG,EAAE,CAAC;IAC1B,CAAC;IAED,WAAW,CAAC,EAAwB;QACnC,KAAK,MAAM,MAAM,IAAI,IAAI,CAAC,OAAO,EAAE;YAClC,EAAE,CAAC,MAAM,CAAC,CAAC;SACX;IACF,CAAC;IAED,KAAK;QACJ,IAAI,CAAC,WAAW,CAAC,CAAC,MAAM,EAAE,EAAE;YAC3B,MAAM,CAAC,KAAK,EAAE,CAAC;QAChB,CAAC,CAAC,CAAC;QACH,IAAI,CAAC,OAAO,CAAC,KAAK,EAAE,CAAC;IACtB,CAAC;IAED,OAAO,CAAC,MAAU;QACjB,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;QACzB,MAAM,CAAC,gBAAgB,CAAC,OAAO,EAAE,GAAG,EAAE;YACrC,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC;QAC7B,CAAC,CAAC,CAAC;IACJ,CAAC;IAED,OAAO,CAAC,OAAY;QACnB,IAAI,CAAC,WAAW,CAAC,CAAC,MAAM,EAAE,EAAE;YAC3B,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,SAAS,CAAC,OAAO,CAAC,CAAC,CAAC;QACtC,CAAC,CAAC,CAAC;IACJ,CAAC;CACD"}
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=setup-env-variables.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"setup-env-variables.d.ts","sourceRoot":"","sources":["../src/setup-env-variables.ts"],"names":[],"mappings":""}
@@ -1,5 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- const remotion_1 = require("remotion");
4
- remotion_1.Internals.setupEnvVariables();
5
- //# sourceMappingURL=setup-env-variables.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"setup-env-variables.js","sourceRoot":"","sources":["../src/setup-env-variables.ts"],"names":[],"mappings":";;AAAA,uCAAmC;AAEnC,oBAAS,CAAC,iBAAiB,EAAE,CAAC"}
package/web/index.html DELETED
@@ -1,21 +0,0 @@
1
- <!DOCTYPE html>
2
- <html lang="en">
3
- <head>
4
- <meta charset="UTF-8" />
5
- <meta name="viewport" content="width=device-width, initial-scale=1.0" />
6
- <link rel="preconnect" href="https://fonts.gstatic.com" />
7
- <link rel="icon" type="image/png" href="/favicon.png" />
8
- <title>Remotion Preview</title>
9
- </head>
10
- <body>
11
- <div id="video-container"></div>
12
- <div id="explainer-container"></div>
13
- <div id="menuportal-0"></div>
14
- <div id="menuportal-1"></div>
15
- <div id="menuportal-2"></div>
16
- <div id="menuportal-3"></div>
17
- <div id="menuportal-4"></div>
18
- <div id="menuportal-5"></div>
19
- <script src="%PUBLIC_PATH%bundle.js"></script>
20
- </body>
21
- </html>