@remotion/bundler 3.0.0-lambda.206 → 3.0.0-lambda.237

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 (233) hide show
  1. package/dist/bundler.d.ts.map +1 -1
  2. package/dist/bundler.js +18 -9
  3. package/dist/bundler.js.map +1 -1
  4. package/dist/copy-dir.d.ts +2 -0
  5. package/dist/copy-dir.d.ts.map +1 -0
  6. package/dist/copy-dir.js +24 -0
  7. package/dist/copy-dir.js.map +1 -0
  8. package/dist/dev-middleware/compatible-api.d.ts +10 -0
  9. package/dist/dev-middleware/compatible-api.d.ts.map +1 -0
  10. package/dist/dev-middleware/compatible-api.js +45 -0
  11. package/dist/dev-middleware/compatible-api.js.map +1 -0
  12. package/dist/dev-middleware/get-filename-from-url.d.ts +3 -0
  13. package/dist/dev-middleware/get-filename-from-url.d.ts.map +1 -0
  14. package/dist/dev-middleware/get-filename-from-url.js +93 -0
  15. package/dist/dev-middleware/get-filename-from-url.js.map +1 -0
  16. package/dist/dev-middleware/get-paths.d.ts +8 -0
  17. package/dist/dev-middleware/get-paths.d.ts.map +1 -0
  18. package/dist/dev-middleware/get-paths.js +20 -0
  19. package/dist/dev-middleware/get-paths.js.map +1 -0
  20. package/dist/dev-middleware/index.d.ts +5 -0
  21. package/dist/dev-middleware/index.d.ts.map +1 -0
  22. package/dist/dev-middleware/index.js +58 -0
  23. package/dist/dev-middleware/index.js.map +1 -0
  24. package/dist/dev-middleware/is-color-supported.d.ts +2 -0
  25. package/dist/dev-middleware/is-color-supported.d.ts.map +1 -0
  26. package/dist/dev-middleware/is-color-supported.js +34 -0
  27. package/dist/dev-middleware/is-color-supported.js.map +1 -0
  28. package/dist/dev-middleware/middleware.d.ts +4 -0
  29. package/dist/dev-middleware/middleware.d.ts.map +1 -0
  30. package/dist/dev-middleware/middleware.js +142 -0
  31. package/dist/dev-middleware/middleware.js.map +1 -0
  32. package/dist/dev-middleware/range-parser.d.ts +16 -0
  33. package/dist/dev-middleware/range-parser.d.ts.map +1 -0
  34. package/dist/dev-middleware/range-parser.js +97 -0
  35. package/dist/dev-middleware/range-parser.js.map +1 -0
  36. package/dist/dev-middleware/ready.d.ts +6 -0
  37. package/dist/dev-middleware/ready.d.ts.map +1 -0
  38. package/dist/dev-middleware/ready.js +14 -0
  39. package/dist/dev-middleware/ready.js.map +1 -0
  40. package/dist/dev-middleware/setup-hooks.d.ts +3 -0
  41. package/dist/dev-middleware/setup-hooks.d.ts.map +1 -0
  42. package/dist/dev-middleware/setup-hooks.js +45 -0
  43. package/dist/dev-middleware/setup-hooks.js.map +1 -0
  44. package/dist/dev-middleware/setup-output-filesystem.d.ts +3 -0
  45. package/dist/dev-middleware/setup-output-filesystem.d.ts.map +1 -0
  46. package/dist/dev-middleware/setup-output-filesystem.js +14 -0
  47. package/dist/dev-middleware/setup-output-filesystem.js.map +1 -0
  48. package/dist/dev-middleware/types.d.ts +12 -0
  49. package/dist/dev-middleware/types.d.ts.map +1 -0
  50. package/dist/dev-middleware/types.js +3 -0
  51. package/dist/dev-middleware/types.js.map +1 -0
  52. package/dist/error-overlay/entry-basic.d.ts +2 -0
  53. package/dist/error-overlay/entry-basic.d.ts.map +1 -0
  54. package/dist/error-overlay/entry-basic.js +22 -0
  55. package/dist/error-overlay/entry-basic.js.map +1 -0
  56. package/dist/error-overlay/react-overlay/effects/format-warning.d.ts +13 -0
  57. package/dist/error-overlay/react-overlay/effects/format-warning.d.ts.map +1 -0
  58. package/dist/error-overlay/react-overlay/effects/format-warning.js +42 -0
  59. package/dist/error-overlay/react-overlay/effects/format-warning.js.map +1 -0
  60. package/dist/error-overlay/react-overlay/effects/proxy-console.d.ts +18 -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 +55 -0
  63. package/dist/error-overlay/react-overlay/effects/proxy-console.js.map +1 -0
  64. package/dist/error-overlay/react-overlay/effects/stack-trace-limit.d.ts +4 -0
  65. package/dist/error-overlay/react-overlay/effects/stack-trace-limit.d.ts.map +1 -0
  66. package/dist/error-overlay/react-overlay/effects/stack-trace-limit.js +44 -0
  67. package/dist/error-overlay/react-overlay/effects/stack-trace-limit.js.map +1 -0
  68. package/dist/error-overlay/react-overlay/effects/unhandled-error.d.ts +5 -0
  69. package/dist/error-overlay/react-overlay/effects/unhandled-error.d.ts.map +1 -0
  70. package/dist/error-overlay/react-overlay/effects/unhandled-error.js +46 -0
  71. package/dist/error-overlay/react-overlay/effects/unhandled-error.js.map +1 -0
  72. package/dist/error-overlay/react-overlay/effects/unhandled-rejection.d.ts +5 -0
  73. package/dist/error-overlay/react-overlay/effects/unhandled-rejection.d.ts.map +1 -0
  74. package/dist/error-overlay/react-overlay/effects/unhandled-rejection.js +42 -0
  75. package/dist/error-overlay/react-overlay/effects/unhandled-rejection.js.map +1 -0
  76. package/dist/error-overlay/react-overlay/index.d.ts +8 -0
  77. package/dist/error-overlay/react-overlay/index.d.ts.map +1 -0
  78. package/dist/error-overlay/react-overlay/index.js +45 -0
  79. package/dist/error-overlay/react-overlay/index.js.map +1 -0
  80. package/dist/error-overlay/react-overlay/listen-to-runtime-errors.d.ts +12 -0
  81. package/dist/error-overlay/react-overlay/listen-to-runtime-errors.d.ts.map +1 -0
  82. package/dist/error-overlay/react-overlay/listen-to-runtime-errors.js +63 -0
  83. package/dist/error-overlay/react-overlay/listen-to-runtime-errors.js.map +1 -0
  84. package/dist/error-overlay/react-overlay/utils/get-lines-around.d.ts +15 -0
  85. package/dist/error-overlay/react-overlay/utils/get-lines-around.d.ts.map +1 -0
  86. package/dist/error-overlay/react-overlay/utils/get-lines-around.js +31 -0
  87. package/dist/error-overlay/react-overlay/utils/get-lines-around.js.map +1 -0
  88. package/dist/error-overlay/react-overlay/utils/get-source-map.d.ts +52 -0
  89. package/dist/error-overlay/react-overlay/utils/get-source-map.d.ts.map +1 -0
  90. package/dist/error-overlay/react-overlay/utils/get-source-map.js +108 -0
  91. package/dist/error-overlay/react-overlay/utils/get-source-map.js.map +1 -0
  92. package/dist/error-overlay/react-overlay/utils/get-stack-frames.d.ts +13 -0
  93. package/dist/error-overlay/react-overlay/utils/get-stack-frames.d.ts.map +1 -0
  94. package/dist/error-overlay/react-overlay/utils/get-stack-frames.js +32 -0
  95. package/dist/error-overlay/react-overlay/utils/get-stack-frames.js.map +1 -0
  96. package/dist/error-overlay/react-overlay/utils/mapper.d.ts +16 -0
  97. package/dist/error-overlay/react-overlay/utils/mapper.d.ts.map +1 -0
  98. package/dist/error-overlay/react-overlay/utils/mapper.js +61 -0
  99. package/dist/error-overlay/react-overlay/utils/mapper.js.map +1 -0
  100. package/dist/error-overlay/react-overlay/utils/open-in-editor.d.ts +7 -0
  101. package/dist/error-overlay/react-overlay/utils/open-in-editor.d.ts.map +1 -0
  102. package/dist/error-overlay/react-overlay/utils/open-in-editor.js +436 -0
  103. package/dist/error-overlay/react-overlay/utils/open-in-editor.js.map +1 -0
  104. package/dist/error-overlay/react-overlay/utils/parser.d.ts +15 -0
  105. package/dist/error-overlay/react-overlay/utils/parser.d.ts.map +1 -0
  106. package/dist/error-overlay/react-overlay/utils/parser.js +85 -0
  107. package/dist/error-overlay/react-overlay/utils/parser.js.map +1 -0
  108. package/dist/error-overlay/react-overlay/utils/path.d.ts +2 -0
  109. package/dist/error-overlay/react-overlay/utils/path.d.ts.map +1 -0
  110. package/dist/error-overlay/react-overlay/utils/path.js +98 -0
  111. package/dist/error-overlay/react-overlay/utils/path.js.map +1 -0
  112. package/dist/error-overlay/react-overlay/utils/settle-promise.d.ts +3 -0
  113. package/dist/error-overlay/react-overlay/utils/settle-promise.d.ts.map +1 -0
  114. package/dist/error-overlay/react-overlay/utils/settle-promise.js +20 -0
  115. package/dist/error-overlay/react-overlay/utils/settle-promise.js.map +1 -0
  116. package/dist/error-overlay/react-overlay/utils/stack-frame.d.ts +46 -0
  117. package/dist/error-overlay/react-overlay/utils/stack-frame.d.ts.map +1 -0
  118. package/dist/error-overlay/react-overlay/utils/stack-frame.js +85 -0
  119. package/dist/error-overlay/react-overlay/utils/stack-frame.js.map +1 -0
  120. package/dist/error-overlay/react-overlay/utils/unmapper.d.ts +14 -0
  121. package/dist/error-overlay/react-overlay/utils/unmapper.d.ts.map +1 -0
  122. package/dist/error-overlay/react-overlay/utils/unmapper.js +94 -0
  123. package/dist/error-overlay/react-overlay/utils/unmapper.js.map +1 -0
  124. package/dist/error-overlay/remotion-overlay/AskOnDiscord.d.ts +3 -0
  125. package/dist/error-overlay/remotion-overlay/AskOnDiscord.d.ts.map +1 -0
  126. package/dist/error-overlay/remotion-overlay/AskOnDiscord.js +15 -0
  127. package/dist/error-overlay/remotion-overlay/AskOnDiscord.js.map +1 -0
  128. package/dist/error-overlay/remotion-overlay/Button.d.ts +6 -0
  129. package/dist/error-overlay/remotion-overlay/Button.d.ts.map +1 -0
  130. package/dist/error-overlay/remotion-overlay/Button.js +25 -0
  131. package/dist/error-overlay/remotion-overlay/Button.js.map +1 -0
  132. package/dist/error-overlay/remotion-overlay/CodeFrame.d.ts +7 -0
  133. package/dist/error-overlay/remotion-overlay/CodeFrame.d.ts.map +1 -0
  134. package/dist/error-overlay/remotion-overlay/CodeFrame.js +29 -0
  135. package/dist/error-overlay/remotion-overlay/CodeFrame.js.map +1 -0
  136. package/dist/error-overlay/remotion-overlay/DismissButton.d.ts +3 -0
  137. package/dist/error-overlay/remotion-overlay/DismissButton.d.ts.map +1 -0
  138. package/dist/error-overlay/remotion-overlay/DismissButton.js +24 -0
  139. package/dist/error-overlay/remotion-overlay/DismissButton.js.map +1 -0
  140. package/dist/error-overlay/remotion-overlay/ErrorDisplay.d.ts +6 -0
  141. package/dist/error-overlay/remotion-overlay/ErrorDisplay.d.ts.map +1 -0
  142. package/dist/error-overlay/remotion-overlay/ErrorDisplay.js +62 -0
  143. package/dist/error-overlay/remotion-overlay/ErrorDisplay.js.map +1 -0
  144. package/dist/error-overlay/remotion-overlay/OpenInEditor.d.ts +6 -0
  145. package/dist/error-overlay/remotion-overlay/OpenInEditor.d.ts.map +1 -0
  146. package/dist/error-overlay/remotion-overlay/OpenInEditor.js +92 -0
  147. package/dist/error-overlay/remotion-overlay/OpenInEditor.js.map +1 -0
  148. package/dist/error-overlay/remotion-overlay/Overlay.d.ts +17 -0
  149. package/dist/error-overlay/remotion-overlay/Overlay.d.ts.map +1 -0
  150. package/dist/error-overlay/remotion-overlay/Overlay.js +35 -0
  151. package/dist/error-overlay/remotion-overlay/Overlay.js.map +1 -0
  152. package/dist/error-overlay/remotion-overlay/SearchGitHubIssues.d.ts +5 -0
  153. package/dist/error-overlay/remotion-overlay/SearchGitHubIssues.d.ts.map +1 -0
  154. package/dist/error-overlay/remotion-overlay/SearchGitHubIssues.js +14 -0
  155. package/dist/error-overlay/remotion-overlay/SearchGitHubIssues.js.map +1 -0
  156. package/dist/error-overlay/remotion-overlay/StackFrame.d.ts +8 -0
  157. package/dist/error-overlay/remotion-overlay/StackFrame.d.ts.map +1 -0
  158. package/dist/error-overlay/remotion-overlay/StackFrame.js +42 -0
  159. package/dist/error-overlay/remotion-overlay/StackFrame.js.map +1 -0
  160. package/dist/error-overlay/remotion-overlay/carets.d.ts +3 -0
  161. package/dist/error-overlay/remotion-overlay/carets.d.ts.map +1 -0
  162. package/dist/error-overlay/remotion-overlay/carets.js +13 -0
  163. package/dist/error-overlay/remotion-overlay/carets.js.map +1 -0
  164. package/dist/error-overlay/remotion-overlay/format-location.d.ts +2 -0
  165. package/dist/error-overlay/remotion-overlay/format-location.d.ts.map +1 -0
  166. package/dist/error-overlay/remotion-overlay/format-location.js +11 -0
  167. package/dist/error-overlay/remotion-overlay/format-location.js.map +1 -0
  168. package/dist/error-overlay/remotion-overlay/index.d.ts +2 -0
  169. package/dist/error-overlay/remotion-overlay/index.d.ts.map +1 -0
  170. package/dist/error-overlay/remotion-overlay/index.js +14 -0
  171. package/dist/error-overlay/remotion-overlay/index.js.map +1 -0
  172. package/dist/fast-refresh/helpers.d.ts +40 -0
  173. package/dist/fast-refresh/helpers.d.ts.map +1 -0
  174. package/dist/fast-refresh/helpers.js +146 -0
  175. package/dist/fast-refresh/helpers.js.map +1 -0
  176. package/dist/fast-refresh/index.d.ts +31 -0
  177. package/dist/fast-refresh/index.d.ts.map +1 -0
  178. package/dist/fast-refresh/index.js +60 -0
  179. package/dist/fast-refresh/index.js.map +1 -0
  180. package/dist/fast-refresh/loader.d.ts +30 -0
  181. package/dist/fast-refresh/loader.d.ts.map +1 -0
  182. package/dist/fast-refresh/loader.js +79 -0
  183. package/dist/fast-refresh/loader.js.map +1 -0
  184. package/dist/fast-refresh/runtime.d.ts +36 -0
  185. package/dist/fast-refresh/runtime.d.ts.map +1 -0
  186. package/dist/fast-refresh/runtime.js +33 -0
  187. package/dist/fast-refresh/runtime.js.map +1 -0
  188. package/dist/homepage/homepage.d.ts +4 -0
  189. package/dist/homepage/homepage.d.ts.map +1 -0
  190. package/dist/homepage/homepage.js +63 -0
  191. package/dist/homepage/homepage.js.map +1 -0
  192. package/dist/hot-middleware/client.d.ts +20 -0
  193. package/dist/hot-middleware/client.d.ts.map +1 -0
  194. package/dist/hot-middleware/client.js +208 -0
  195. package/dist/hot-middleware/client.js.map +1 -0
  196. package/dist/hot-middleware/index.d.ts +14 -0
  197. package/dist/hot-middleware/index.d.ts.map +1 -0
  198. package/dist/hot-middleware/index.js +181 -0
  199. package/dist/hot-middleware/index.js.map +1 -0
  200. package/dist/hot-middleware/process-update.d.ts +13 -0
  201. package/dist/hot-middleware/process-update.d.ts.map +1 -0
  202. package/dist/hot-middleware/process-update.js +147 -0
  203. package/dist/hot-middleware/process-update.js.map +1 -0
  204. package/dist/hot-middleware/strip-ansi.d.ts +7 -0
  205. package/dist/hot-middleware/strip-ansi.d.ts.map +1 -0
  206. package/dist/hot-middleware/strip-ansi.js +23 -0
  207. package/dist/hot-middleware/strip-ansi.js.map +1 -0
  208. package/dist/hot-middleware/types.d.ts +39 -0
  209. package/dist/hot-middleware/types.d.ts.map +1 -0
  210. package/dist/hot-middleware/types.js +18 -0
  211. package/dist/hot-middleware/types.js.map +1 -0
  212. package/dist/index.d.ts +0 -1
  213. package/dist/index.d.ts.map +1 -1
  214. package/dist/renderEntry.js +6 -2
  215. package/dist/renderEntry.js.map +1 -1
  216. package/dist/start-server.d.ts +0 -1
  217. package/dist/start-server.d.ts.map +1 -1
  218. package/dist/start-server.js +35 -14
  219. package/dist/start-server.js.map +1 -1
  220. package/dist/static-preview.d.ts +2 -0
  221. package/dist/static-preview.d.ts.map +1 -0
  222. package/dist/static-preview.js +34 -0
  223. package/dist/static-preview.js.map +1 -0
  224. package/dist/webpack-config.d.ts +1 -2
  225. package/dist/webpack-config.d.ts.map +1 -1
  226. package/dist/webpack-config.js +14 -11
  227. package/dist/webpack-config.js.map +1 -1
  228. package/package.json +9 -7
  229. package/dist/setup-env-variables.d.ts +0 -2
  230. package/dist/setup-env-variables.d.ts.map +0 -1
  231. package/dist/setup-env-variables.js +0 -5
  232. package/dist/setup-env-variables.js.map +0 -1
  233. package/web/index.html +0 -20
@@ -0,0 +1,31 @@
1
+ /**
2
+ * Source code is adapted from https://github.com/WebHotelier/webpack-fast-refresh#readme and rewritten in Typescript. This file is MIT licensed.
3
+ */
4
+ /**
5
+ * The MIT License (MIT)
6
+ *
7
+ * Copyright (c) 2020 Vercel, Inc.
8
+ *
9
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
10
+ * of this software and associated documentation files (the "Software"), to deal
11
+ * in the Software without restriction, including without limitation the rights
12
+ * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
13
+ * copies of the Software, and to permit persons to whom the Software is
14
+ * furnished to do so, subject to the following conditions:
15
+ *
16
+ * The above copyright notice and this permission notice shall be included in all
17
+ * copies or substantial portions of the Software.
18
+ *
19
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
20
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
21
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
22
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
23
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
24
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
25
+ * SOFTWARE.
26
+ */
27
+ import webpack from 'webpack';
28
+ export declare class ReactFreshWebpackPlugin {
29
+ apply(compiler: webpack.Compiler): void;
30
+ }
31
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/fast-refresh/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH;;;;;;;;;;;;;;;;;;;;;;GAsBG;AAOH,OAAO,OAAO,MAAM,SAAS,CAAC;AAqC9B,qBAAa,uBAAuB;IACnC,KAAK,CAAC,QAAQ,EAAE,OAAO,CAAC,QAAQ;CAoChC"}
@@ -0,0 +1,60 @@
1
+ "use strict";
2
+ /**
3
+ * Source code is adapted from https://github.com/WebHotelier/webpack-fast-refresh#readme and rewritten in Typescript. This file is MIT licensed.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.ReactFreshWebpackPlugin = void 0;
7
+ const webpack_1 = require("webpack");
8
+ class ReactRefreshRuntimeModule extends webpack_1.RuntimeModule {
9
+ constructor() {
10
+ super('react refresh', 5);
11
+ }
12
+ generate() {
13
+ const { runtimeTemplate } = this.compilation;
14
+ return webpack_1.Template.asString([
15
+ `${webpack_1.RuntimeGlobals.interceptModuleExecution}.push(${runtimeTemplate.basicFunction('options', [
16
+ `const originalFactory = options.factory;`,
17
+ `options.factory = ${runtimeTemplate.basicFunction('moduleObject, moduleExports, webpackRequire', [
18
+ // Legacy CSS implementations will `eval` browser code in a Node.js
19
+ // context to extract CSS. For backwards compatibility, we need to check
20
+ // we're in a browser context before continuing.
21
+ `const hasRefresh = typeof self !== "undefined" && !!self.$RefreshInterceptModuleExecution$;`,
22
+ `const cleanup = hasRefresh ? self.$RefreshInterceptModuleExecution$(moduleObject.id) : () => {};`,
23
+ 'try {',
24
+ webpack_1.Template.indent('originalFactory.call(this, moduleObject, moduleExports, webpackRequire);'),
25
+ '} finally {',
26
+ webpack_1.Template.indent(`cleanup();`),
27
+ '}',
28
+ ])}`,
29
+ ])})`,
30
+ ]);
31
+ }
32
+ }
33
+ class ReactFreshWebpackPlugin {
34
+ apply(compiler) {
35
+ const webpackMajorVersion = parseInt(webpack_1.version !== null && webpack_1.version !== void 0 ? webpack_1.version : '', 10);
36
+ if (webpackMajorVersion < 5) {
37
+ throw new Error(`ReactFreshWebpackPlugin does not support webpack v${webpackMajorVersion}.`);
38
+ }
39
+ compiler.hooks.compilation.tap(this.constructor.name, (compilation) => {
40
+ compilation.mainTemplate.hooks.localVars.tap(this.constructor.name, (source) => webpack_1.Template.asString([
41
+ source,
42
+ '',
43
+ '// noop fns to prevent runtime errors during initialization',
44
+ 'if (typeof self !== "undefined") {',
45
+ webpack_1.Template.indent('self.$RefreshReg$ = function () {};'),
46
+ webpack_1.Template.indent('self.$RefreshSig$ = function () {'),
47
+ webpack_1.Template.indent(webpack_1.Template.indent('return function (type) {')),
48
+ webpack_1.Template.indent(webpack_1.Template.indent(webpack_1.Template.indent('return type;'))),
49
+ webpack_1.Template.indent(webpack_1.Template.indent('};')),
50
+ webpack_1.Template.indent('};'),
51
+ '}',
52
+ ]));
53
+ compilation.hooks.additionalTreeRuntimeRequirements.tap(this.constructor.name, (chunk) => {
54
+ compilation.addRuntimeModule(chunk, new ReactRefreshRuntimeModule());
55
+ });
56
+ });
57
+ }
58
+ }
59
+ exports.ReactFreshWebpackPlugin = ReactFreshWebpackPlugin;
60
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/fast-refresh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jB,MAAM;gBACN,EAAE;gBACF,6DAA6D;gBAC7D,oCAAoC;gBACpC,kBAAQ,CAAC,MAAM,CAAC,qCAAqC,CAAC;gBACtD,kBAAQ,CAAC,MAAM,CAAC,mCAAmC,CAAC;gBACpD,kBAAQ,CAAC,MAAM,CAAC,kBAAQ,CAAC,MAAM,CAAC,0BAA0B,CAAC,CAAC;gBAC5D,kBAAQ,CAAC,MAAM,CAAC,kBAAQ,CAAC,MAAM,CAAC,kBAAQ,CAAC,MAAM,CAAC,cAAc,CAAC,CAAC,CAAC;gBACjE,kBAAQ,CAAC,MAAM,CAAC,kBAAQ,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC;gBACtC,kBAAQ,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,KAAK,EAAE,EAAE;gBACT,WAAW,CAAC,gBAAgB,CAAC,KAAK,EAAE,IAAI,yBAAyB,EAAE,CAAC,CAAC;YACtE,CAAC,CACD,CAAC;QACH,CAAC,CAAC,CAAC;IACJ,CAAC;CACD;AArCD,0DAqCC"}
@@ -0,0 +1,30 @@
1
+ /**
2
+ * Source code is adapted from https://github.com/WebHotelier/webpack-fast-refresh#readme and rewritten in Typescript. This file is MIT licensed.
3
+ */
4
+ /**
5
+ * The MIT License (MIT)
6
+ *
7
+ * Copyright (c) 2020 Vercel, Inc.
8
+ *
9
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
10
+ * of this software and associated documentation files (the "Software"), to deal
11
+ * in the Software without restriction, including without limitation the rights
12
+ * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
13
+ * copies of the Software, and to permit persons to whom the Software is
14
+ * furnished to do so, subject to the following conditions:
15
+ *
16
+ * The above copyright notice and this permission notice shall be included in all
17
+ * copies or substantial portions of the Software.
18
+ *
19
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
20
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
21
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
22
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
23
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
24
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
25
+ * SOFTWARE.
26
+ */
27
+ import { LoaderDefinition } from 'webpack';
28
+ declare const ReactRefreshLoader: LoaderDefinition;
29
+ export default ReactRefreshLoader;
30
+ //# sourceMappingURL=loader.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"loader.d.ts","sourceRoot":"","sources":["../../src/fast-refresh/loader.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH;;;;;;;;;;;;;;;;;;;;;;GAsBG;AAEH,OAAO,EAAC,gBAAgB,EAAC,MAAM,SAAS,CAAC;AAwFzC,QAAA,MAAM,kBAAkB,EAAE,gBAEzB,CAAC;AAEF,eAAe,kBAAkB,CAAC"}
@@ -0,0 +1,79 @@
1
+ "use strict";
2
+ /**
3
+ * Source code is adapted from https://github.com/WebHotelier/webpack-fast-refresh#readme and rewritten in Typescript. This file is MIT licensed.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ // This file is copied from the @vercel/next.js, with removed TS annotations
7
+ //
8
+ // https://github.com/vercel/next.js/blob/canary/packages/react-refresh-utils/loader.ts
9
+ // This function gets unwrapped into global scope, which is why we don't invert
10
+ // if-blocks. Also, you cannot use `return`.
11
+ function RefreshModuleRuntime() {
12
+ var _a, _b, _c, _d, _e, _f;
13
+ // Legacy CSS implementations will `eval` browser code in a Node.js context
14
+ // to extract CSS. For backwards compatibility, we need to check we're in a
15
+ // browser context before continuing.
16
+ if (typeof self !== 'undefined' &&
17
+ // AMP / No-JS mode does not inject these helpers:
18
+ '$RefreshHelpers$' in self) {
19
+ // @ts-expect-error
20
+ // eslint-disable-next-line no-proto
21
+ const currentExports = module.__proto__.exports;
22
+ let prevExports = null;
23
+ if ((_b = (_a = module.hot) === null || _a === void 0 ? void 0 : _a.data) === null || _b === void 0 ? void 0 : _b.prevExports) {
24
+ prevExports = module.hot.data.prevExports;
25
+ }
26
+ // This cannot happen in MainTemplate because the exports mismatch between
27
+ // templating and execution.
28
+ self.$RefreshHelpers$.registerExportsForReactRefresh(currentExports, module.id);
29
+ // A module can be accepted automatically based on its exports, e.g. when
30
+ // it is a Refresh Boundary.
31
+ if (self.$RefreshHelpers$.isReactRefreshBoundary(currentExports)) {
32
+ // Save the previous exports on update so we can compare the boundary
33
+ // signatures.
34
+ (_c = module.hot) === null || _c === void 0 ? void 0 : _c.dispose((data) => {
35
+ data.prevExports = currentExports;
36
+ });
37
+ // Unconditionally accept an update to this module, we'll check if it's
38
+ // still a Refresh Boundary later.
39
+ (_d = module.hot) === null || _d === void 0 ? void 0 : _d.accept();
40
+ // This field is set when the previous version of this module was a
41
+ // Refresh Boundary, letting us know we need to check for invalidation or
42
+ // enqueue an update.
43
+ if (prevExports !== null) {
44
+ // A boundary can become ineligible if its exports are incompatible
45
+ // with the previous exports.
46
+ //
47
+ // For example, if you add/remove/change exports, we'll want to
48
+ // re-execute the importing modules, and force those components to
49
+ // re-render. Similarly, if you convert a class component to a
50
+ // function, we want to invalidate the boundary.
51
+ if (self.$RefreshHelpers$.shouldInvalidateReactRefreshBoundary(prevExports, currentExports)) {
52
+ // @ts-expect-error
53
+ (_e = module.hot) === null || _e === void 0 ? void 0 : _e.invalidate();
54
+ }
55
+ else {
56
+ self.$RefreshHelpers$.scheduleUpdate();
57
+ }
58
+ }
59
+ }
60
+ else {
61
+ // Since we just executed the code for the module, it's possible that the
62
+ // new exports made it ineligible for being a boundary.
63
+ // We only care about the case when we were _previously_ a boundary,
64
+ // because we already accepted this update (accidental side effect).
65
+ const isNoLongerABoundary = prevExports !== null;
66
+ if (isNoLongerABoundary) {
67
+ // @ts-expect-error
68
+ (_f = module.hot) === null || _f === void 0 ? void 0 : _f.invalidate();
69
+ }
70
+ }
71
+ }
72
+ }
73
+ let refreshModuleRuntime = RefreshModuleRuntime.toString();
74
+ refreshModuleRuntime = refreshModuleRuntime.slice(refreshModuleRuntime.indexOf('{') + 1, refreshModuleRuntime.lastIndexOf('}'));
75
+ const ReactRefreshLoader = function (source, inputSourceMap) {
76
+ this.callback(null, `${source}\n\n;${refreshModuleRuntime}`, inputSourceMap);
77
+ };
78
+ exports.default = ReactRefreshLoader;
79
+ //# sourceMappingURL=loader.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"loader.js","sourceRoot":"","sources":["../../src/fast-refresh/loader.ts"],"names":[],"mappings":";AAAA;;GAEG;;AA4BH,4EAA4E;AAC5E,EAAE;AACF,uFAAuF;AAEvF,+EAA+E;AAC/E,4CAA4C;AAC5C,SAAS,oBAAoB;;IAC5B,2EAA2E;IAC3E,2EAA2E;IAC3E,qCAAqC;IACrC,IACC,OAAO,IAAI,KAAK,WAAW;QAC3B,kDAAkD;QAClD,kBAAkB,IAAI,IAAI,EACzB;QACD,mBAAmB;QACnB,oCAAoC;QACpC,MAAM,cAAc,GAAG,MAAM,CAAC,SAAS,CAAC,OAAO,CAAC;QAChD,IAAI,WAAW,GAAG,IAAI,CAAC;QAEvB,IAAI,MAAA,MAAA,MAAM,CAAC,GAAG,0CAAE,IAAI,0CAAE,WAAW,EAAE;YAClC,WAAW,GAAG,MAAM,CAAC,GAAG,CAAC,IAAI,CAAC,WAAW,CAAC;SAC1C;QAED,0EAA0E;QAC1E,4BAA4B;QAC5B,IAAI,CAAC,gBAAgB,CAAC,8BAA8B,CACnD,cAAc,EACd,MAAM,CAAC,EAAE,CACT,CAAC;QAEF,yEAAyE;QACzE,4BAA4B;QAC5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AAE,cAAc;IAC5E,IAAI,CAAC,QAAQ,CAAC,IAAI,EAAE,GAAG,MAAM,QAAQ,oBAAoB,EAAE,EAAE,cAAc,CAAC,CAAC;AAC9E,CAAC,CAAC;AAEF,kBAAe,kBAAkB,CAAC"}
@@ -0,0 +1,36 @@
1
+ /**
2
+ * Source code is adapted from https://github.com/WebHotelier/webpack-fast-refresh#readme and rewritten in Typescript. This file is MIT licensed.
3
+ */
4
+ /**
5
+ * The MIT License (MIT)
6
+ *
7
+ * Copyright (c) 2020 Vercel, Inc.
8
+ *
9
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
10
+ * of this software and associated documentation files (the "Software"), to deal
11
+ * in the Software without restriction, including without limitation the rights
12
+ * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
13
+ * copies of the Software, and to permit persons to whom the Software is
14
+ * furnished to do so, subject to the following conditions:
15
+ *
16
+ * The above copyright notice and this permission notice shall be included in all
17
+ * copies or substantial portions of the Software.
18
+ *
19
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
20
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
21
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
22
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
23
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
24
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
25
+ * SOFTWARE.
26
+ */
27
+ declare global {
28
+ interface Window {
29
+ $RefreshReg$: (type: string, id?: string) => void;
30
+ $RefreshSig$: () => (type: string) => unknown;
31
+ $RefreshHelpers$: typeof RefreshHelpers;
32
+ $RefreshInterceptModuleExecution$: (webpackId: unknown) => () => void;
33
+ }
34
+ }
35
+ import RefreshHelpers from './helpers';
36
+ //# sourceMappingURL=runtime.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"runtime.d.ts","sourceRoot":"","sources":["../../src/fast-refresh/runtime.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH;;;;;;;;;;;;;;;;;;;;;;GAsBG;AAMH,OAAO,CAAC,MAAM,CAAC;IACd,UAAU,MAAM;QACf,YAAY,EAAE,CAAC,IAAI,EAAE,MAAM,EAAE,EAAE,CAAC,EAAE,MAAM,KAAK,IAAI,CAAC;QAClD,YAAY,EAAE,MAAM,CAAC,IAAI,EAAE,MAAM,KAAK,OAAO,CAAC;QAC9C,gBAAgB,EAAE,OAAO,cAAc,CAAC;QACxC,iCAAiC,EAAE,CAAC,SAAS,EAAE,OAAO,KAAK,MAAM,IAAI,CAAC;KACtE;CACD;AAGD,OAAO,cAAc,MAAM,WAAW,CAAC"}
@@ -0,0 +1,33 @@
1
+ "use strict";
2
+ /**
3
+ * Source code is adapted from https://github.com/WebHotelier/webpack-fast-refresh#readme and rewritten in Typescript. This file is MIT licensed.
4
+ */
5
+ var __importDefault = (this && this.__importDefault) || function (mod) {
6
+ return (mod && mod.__esModule) ? mod : { "default": mod };
7
+ };
8
+ Object.defineProperty(exports, "__esModule", { value: true });
9
+ const RefreshRuntime = require('react-refresh/runtime');
10
+ const helpers_1 = __importDefault(require("./helpers"));
11
+ // Hook into ReactDOM initialization
12
+ RefreshRuntime.injectIntoGlobalHook(self);
13
+ // noop fns to prevent runtime errors during initialization
14
+ self.$RefreshReg$ = () => undefined;
15
+ self.$RefreshSig$ = () => (type) => type;
16
+ // Register global helpers
17
+ self.$RefreshHelpers$ = helpers_1.default;
18
+ // Register a helper for module execution interception
19
+ self.$RefreshInterceptModuleExecution$ = function (webpackModuleId) {
20
+ const prevRefreshReg = self.$RefreshReg$;
21
+ const prevRefreshSig = self.$RefreshSig$;
22
+ self.$RefreshReg$ = (type, id) => {
23
+ RefreshRuntime.register(type, webpackModuleId + ' ' + id);
24
+ };
25
+ self.$RefreshSig$ = RefreshRuntime.createSignatureFunctionForTransform;
26
+ // Modeled after `useEffect` cleanup pattern:
27
+ // https://reactjs.org/docs/hooks-effect.html#effects-with-cleanup
28
+ return () => {
29
+ self.$RefreshReg$ = prevRefreshReg;
30
+ self.$RefreshSig$ = prevRefreshSig;
31
+ };
32
+ };
33
+ //# sourceMappingURL=runtime.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"runtime.js","sourceRoot":"","sources":["../../src/fast-refresh/runtime.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;AAuCH,MAAM,cAAc,GAAG,OAAO,CAAC,uBAAuB,CAAC,CAAC;AACxD,wDAAuC;AAEvC,oCAAoC;AACpC,cAAc,CAAC,oBAAoB,CAAC,IAAI,CAAC,CAAC;AAE1C,2DAA2D;AAC3D,IAAI,CAAC,YAAY,GAAG,GAAG,EAAE,CAAC,SAAS,CAAC;AACpC,IAAI,CAAC,YAAY,GAAG,GAAG,EAAE,CAAC,CAAC,IAAa,EAAE,EAAE,CAAC,IAAI,CAAC;AAElD,0BAA0B;AAC1B,IAAI,CAAC,gBAAgB,GAAG,iBAAc,CAAC;AAEvC,sDAAsD;AACtD,IAAI,CAAC,iCAAiC,GAAG,UAAU,eAAwB;IAC1E,MAAM,cAAc,GAAG,IAAI,CAAC,YAAY,CAAC;IACzC,MAAM,cAAc,GAAG,IAAI,CAAC,YAAY,CAAC;IAEzC,IAAI,CAAC,YAAY,GAAG,CAAC,IAAI,EAAE,EAAE,EAAE,EAAE;QAChC,cAAc,CAAC,QAAQ,CAAC,IAAI,EAAE,eAAe,GAAG,GAAG,GAAG,EAAE,CAAC,CAAC;IAC3D,CAAC,CAAC;IAEF,IAAI,CAAC,YAAY,GAAG,cAAc,CAAC,mCAAmC,CAAC;IAEvE,6CAA6C;IAC7C,kEAAkE;IAClE,OAAO,GAAG,EAAE;QACX,IAAI,CAAC,YAAY,GAAG,cAAc,CAAC;QACnC,IAAI,CAAC,YAAY,GAAG,cAAc,CAAC;IACpC,CAAC,CAAC;AACH,CAAC,CAAC"}
@@ -0,0 +1,4 @@
1
+ import React from 'react';
2
+ export declare const AvailableCompositions: React.FC;
3
+ export declare const Homepage: React.FC;
4
+ //# sourceMappingURL=homepage.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"homepage.d.ts","sourceRoot":"","sources":["../../src/homepage/homepage.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAyC,MAAM,OAAO,CAAC;AAuB9D,eAAO,MAAM,qBAAqB,EAAE,KAAK,CAAC,EAgDzC,CAAC;AAEF,eAAO,MAAM,QAAQ,EAAE,KAAK,CAAC,EAsC5B,CAAC"}
@@ -0,0 +1,63 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.Homepage = exports.AvailableCompositions = void 0;
4
+ const jsx_runtime_1 = require("react/jsx-runtime");
5
+ const react_1 = require("react");
6
+ const remotion_1 = require("remotion");
7
+ const container = {
8
+ width: 800,
9
+ margin: 'auto',
10
+ paddingLeft: 20,
11
+ paddingRight: 20,
12
+ fontFamily: 'sans-serif',
13
+ lineHeight: 1.5,
14
+ };
15
+ const pre = {
16
+ display: 'block',
17
+ backgroundColor: '#f7f7f7',
18
+ whiteSpace: 'nowrap',
19
+ padding: 16,
20
+ fontFamily: 'monospace',
21
+ borderRadius: 5,
22
+ fontSize: 15,
23
+ overflowX: 'auto',
24
+ };
25
+ const AvailableCompositions = () => {
26
+ const [comps, setComps] = (0, react_1.useState)(null);
27
+ (0, react_1.useEffect)(() => {
28
+ let timeout = null;
29
+ const check = () => {
30
+ if (window.ready === true) {
31
+ setComps(window.getStaticCompositions());
32
+ }
33
+ else {
34
+ timeout = setTimeout(check, 250);
35
+ }
36
+ };
37
+ check();
38
+ return () => {
39
+ if (!timeout) {
40
+ return;
41
+ }
42
+ clearTimeout(timeout);
43
+ };
44
+ }, []);
45
+ const showComps = (0, react_1.useCallback)(() => {
46
+ window.location.search = '?evaluation=true';
47
+ }, []);
48
+ if (!remotion_1.Internals.getIsEvaluation()) {
49
+ return ((0, jsx_runtime_1.jsx)("button", Object.assign({ type: "button", onClick: showComps }, { children: "Click here to see a list of available compositions." }), void 0));
50
+ }
51
+ return ((0, jsx_runtime_1.jsxs)("div", { children: [comps === null ? (0, jsx_runtime_1.jsx)("p", { children: "Loading compositions..." }, void 0) : null, (0, jsx_runtime_1.jsx)("ul", { children: comps === null
52
+ ? null
53
+ : comps.map((c) => {
54
+ return (0, jsx_runtime_1.jsx)("li", { children: c.id }, c.id);
55
+ }) }, void 0)] }, void 0));
56
+ };
57
+ exports.AvailableCompositions = AvailableCompositions;
58
+ const Homepage = () => {
59
+ const url = window.location.origin + window.location.pathname;
60
+ return ((0, jsx_runtime_1.jsxs)("div", Object.assign({ style: container }, { children: [(0, jsx_runtime_1.jsx)("h1", { children: "Remotion Bundle" }, void 0), "This is a website which contains a bundled Remotion video. You can render videos based on this URL.", (0, jsx_runtime_1.jsx)("h2", { children: "Available compositions" }, void 0), (0, jsx_runtime_1.jsx)(exports.AvailableCompositions, {}, void 0), (0, jsx_runtime_1.jsx)("h2", { children: "How to render" }, void 0), "Locally: ", (0, jsx_runtime_1.jsx)("br", {}, void 0), (0, jsx_runtime_1.jsx)("br", {}, void 0), (0, jsx_runtime_1.jsxs)("div", Object.assign({ style: pre }, { children: ["npx remotion render ", url, " ", '<comp-name> <output-location>'] }), void 0), (0, jsx_runtime_1.jsx)("br", {}, void 0), (0, jsx_runtime_1.jsx)("br", {}, void 0), "With Remotion Lambda: ", (0, jsx_runtime_1.jsx)("br", {}, void 0), (0, jsx_runtime_1.jsx)("br", {}, void 0), (0, jsx_runtime_1.jsxs)("div", Object.assign({ style: pre }, { children: ["npx remotion lambda render ", url, " ", '<comp-name>'] }), void 0), (0, jsx_runtime_1.jsx)("br", {}, void 0), (0, jsx_runtime_1.jsxs)("p", { children: ["You can also render still images, and use the Node.JS APIs", ' ', (0, jsx_runtime_1.jsx)("code", { children: "getCompositions()" }, void 0), ", ", (0, jsx_runtime_1.jsx)("code", { children: "renderMedia()" }, void 0), ",", ' ', (0, jsx_runtime_1.jsx)("code", { children: "renderMediaOnLambda()" }, void 0), ", ", (0, jsx_runtime_1.jsx)("code", { children: "renderStill()" }, void 0), " and", ' ', (0, jsx_runtime_1.jsx)("code", { children: "renderStillOnLambda()" }, void 0), " with this URL."] }, void 0), (0, jsx_runtime_1.jsxs)("p", { children: ["Visit", ' ', (0, jsx_runtime_1.jsx)("a", Object.assign({ href: "https://remotion.dev/docs", target: "_blank" }, { children: "remotion.dev/docs" }), void 0), ' ', "to read the documentation."] }, void 0)] }), void 0));
61
+ };
62
+ exports.Homepage = Homepage;
63
+ //# sourceMappingURL=homepage.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"homepage.js","sourceRoot":"","sources":["../../src/homepage/homepage.tsx"],"names":[],"mappings":";;;;AAAA,iCAA8D;AAC9D,uCAAkD;AAElD,MAAM,SAAS,GAAwB;IACtC,KAAK,EAAE,GAAG;IACV,MAAM,EAAE,MAAM;IACd,WAAW,EAAE,EAAE;IACf,YAAY,EAAE,EAAE;IAChB,UAAU,EAAE,YAAY;IACxB,UAAU,EAAE,GAAG;CACf,CAAC;AAEF,MAAM,GAAG,GAAwB;IAChC,OAAO,EAAE,OAAO;IAChB,eAAe,EAAE,SAAS;IAC1B,UAAU,EAAE,QAAQ;IACpB,OAAO,EAAE,EAAE;IACX,UAAU,EAAE,WAAW;IACvB,YAAY,EAAE,CAAC;IACf,QAAQ,EAAE,EAAE;IACZ,SAAS,EAAE,MAAM;CACjB,CAAC;AAEK,MAAM,qBAAqB,GAAa,GAAG,EAAE;IACnD,MAAM,CAAC,KAAK,EAAE,QAAQ,CAAC,GAAG,IAAA,gBAAQ,EAAyB,IAAI,CAAC,CAAC;IAEjE,IAAA,iBAAS,EAAC,GAAG,EAAE;QACd,IAAI,OAAO,GAA0B,IAAI,CAAC;QAC1C,MAAM,KAAK,GAAG,GAAG,EAAE;YAClB,IA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EAAwB,yGAGxB,4EAA+B,EAC/B,uBAAC,6BAAqB,aAAG,EACzB,mEAAsB,eACb,wCAAM,EACf,wCAAM,EACN,+CAAK,KAAK,EAAE,GAAG,yCACO,GAAG,OAAG,+BAA+B,aACrD,EACN,wCAAM,EACN,wCAAM,4BACgB,wCAAM,EAC5B,wCAAM,EACN,+CAAK,KAAK,EAAE,GAAG,gDACc,GAAG,OAAG,aAAa,aAC1C,EACN,wCAAM,EACN,wGAC4D,GAAG,EAC9D,yEAA8B,QAAE,qEAA0B,OAAE,GAAG,EAC/D,6EAAkC,QAAE,qEAA0B,UAAK,GAAG,EACtE,6EAAkC,+BAC/B,EACJ,mDACO,GAAG,EACT,4CAAG,IAAI,EAAC,2BAA2B,EAAC,MAAM,EAAC,QAAQ,+CAE/C,EAAC,GAAG,0CAEL,aACC,CACN,CAAC;AACH,CAAC,CAAC;AAtCW,QAAA,QAAQ,YAsCnB"}
@@ -0,0 +1,20 @@
1
+ import { HotMiddlewareMessage } from './types';
2
+ declare function eventSourceWrapper(): {
3
+ addMessageListener(fn: (msg: MessageEvent) => void): void;
4
+ };
5
+ declare global {
6
+ interface Window {
7
+ __whmEventSourceWrapper: {
8
+ [key: string]: ReturnType<typeof eventSourceWrapper>;
9
+ };
10
+ __webpack_hot_middleware_reporter__: Reporter;
11
+ }
12
+ }
13
+ declare type Reporter = ReturnType<typeof createReporter>;
14
+ declare function createReporter(): {
15
+ cleanProblemsCache(): void;
16
+ problems(type: 'errors' | 'warnings', obj: HotMiddlewareMessage): boolean;
17
+ success: () => undefined;
18
+ };
19
+ export {};
20
+ //# sourceMappingURL=client.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"client.d.ts","sourceRoot":"","sources":["../../src/hot-middleware/client.ts"],"names":[],"mappings":"AAOA,OAAO,EAAC,oBAAoB,EAAuB,MAAM,SAAS,CAAC;AAgBnE,iBAAS,kBAAkB;iCAsCI,YAAY,KAAK,IAAI;EAInD;AAED,OAAO,CAAC,MAAM,CAAC;IACd,UAAU,MAAM;QACf,uBAAuB,EAAE;YACxB,CAAC,GAAG,EAAE,MAAM,GAAG,UAAU,CAAC,OAAO,kBAAkB,CAAC,CAAC;SACrD,CAAC;QACF,mCAAmC,EAAE,QAAQ,CAAC;KAC9C;CACD;AAiDD,aAAK,QAAQ,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAElD,iBAAS,cAAc;;mBA+CN,QAAQ,GAAG,UAAU,OAAO,oBAAoB;;EAShE"}
@@ -0,0 +1,208 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ /**
4
+ * Source code is adapted from
5
+ * https://github.com/webpack-contrib/webpack-hot-middleware#readme
6
+ * and rewritten in TypeScript. This file is MIT licensed
7
+ */
8
+ const process_update_1 = require("./process-update");
9
+ const strip_ansi_1 = require("./strip-ansi");
10
+ const types_1 = require("./types");
11
+ if (typeof window === 'undefined') {
12
+ // do nothing
13
+ }
14
+ else if (typeof window.EventSource === 'undefined') {
15
+ console.warn('Unsupported browser: You need a browser that supports EventSource ');
16
+ }
17
+ else if (types_1.hotMiddlewareOptions.autoConnect) {
18
+ connect();
19
+ }
20
+ function setOptionsAndConnect() {
21
+ connect();
22
+ }
23
+ function eventSourceWrapper() {
24
+ let source;
25
+ let lastActivity = Date.now();
26
+ const listeners = [];
27
+ init();
28
+ const timer = setInterval(() => {
29
+ if (Date.now() - lastActivity > types_1.hotMiddlewareOptions.timeout) {
30
+ handleDisconnect();
31
+ }
32
+ }, types_1.hotMiddlewareOptions.timeout / 2);
33
+ function init() {
34
+ source = new window.EventSource(types_1.hotMiddlewareOptions.path);
35
+ source.onopen = handleOnline;
36
+ source.onerror = handleDisconnect;
37
+ source.onmessage = handleMessage;
38
+ }
39
+ function handleOnline() {
40
+ console.log('[Fast Refresh] connected');
41
+ lastActivity = Date.now();
42
+ }
43
+ function handleMessage(event) {
44
+ lastActivity = Date.now();
45
+ for (let i = 0; i < listeners.length; i++) {
46
+ listeners[i](event);
47
+ }
48
+ }
49
+ function handleDisconnect() {
50
+ clearInterval(timer);
51
+ source.close();
52
+ setTimeout(init, types_1.hotMiddlewareOptions.timeout);
53
+ }
54
+ return {
55
+ addMessageListener(fn) {
56
+ listeners.push(fn);
57
+ },
58
+ };
59
+ }
60
+ function getEventSourceWrapper() {
61
+ if (!window.__whmEventSourceWrapper) {
62
+ window.__whmEventSourceWrapper = {};
63
+ }
64
+ if (!window.__whmEventSourceWrapper[types_1.hotMiddlewareOptions.path]) {
65
+ // cache the wrapper for other entries loaded on
66
+ // the same page with the same hotMiddlewareOptions.path
67
+ window.__whmEventSourceWrapper[types_1.hotMiddlewareOptions.path] =
68
+ eventSourceWrapper();
69
+ }
70
+ return window.__whmEventSourceWrapper[types_1.hotMiddlewareOptions.path];
71
+ }
72
+ function connect() {
73
+ getEventSourceWrapper().addMessageListener(handleMessage);
74
+ function handleMessage(event) {
75
+ if (event.data === '\uD83D\uDC93') {
76
+ return;
77
+ }
78
+ try {
79
+ processMessage(JSON.parse(event.data));
80
+ }
81
+ catch (ex) {
82
+ if (types_1.hotMiddlewareOptions.warn) {
83
+ console.warn('Invalid HMR message: ' + event.data + '\n' + ex);
84
+ }
85
+ }
86
+ }
87
+ }
88
+ // the reporter needs to be a singleton on the page
89
+ // in case the client is being used by multiple bundles
90
+ // we only want to report once.
91
+ // all the errors will go to all clients
92
+ const singletonKey = '__webpack_hot_middleware_reporter__';
93
+ let reporter;
94
+ if (typeof window !== 'undefined') {
95
+ if (!window[singletonKey]) {
96
+ window[singletonKey] = createReporter();
97
+ }
98
+ reporter = window[singletonKey];
99
+ }
100
+ function createReporter() {
101
+ const styles = {
102
+ errors: 'color: #ff0000;',
103
+ warnings: 'color: #999933;',
104
+ };
105
+ let previousProblems = null;
106
+ function log(type, obj) {
107
+ if (obj.action === 'building') {
108
+ console.log('[Fast Refresh] Building');
109
+ return;
110
+ }
111
+ const newProblems = obj[type]
112
+ .map((msg) => {
113
+ return (0, strip_ansi_1.stripAnsi)(msg);
114
+ })
115
+ .join('\n');
116
+ if (previousProblems === newProblems) {
117
+ return;
118
+ }
119
+ previousProblems = newProblems;
120
+ const style = styles[type];
121
+ const name = obj.name ? "'" + obj.name + "' " : '';
122
+ const title = '[Fast Refresh] bundle ' + name + 'has ' + obj[type].length + ' ' + type;
123
+ // NOTE: console.warn or console.error will print the stack trace
124
+ // which isn't helpful here, so using console.log to escape it.
125
+ if (console.group && console.groupEnd) {
126
+ console.group('%c' + title, style);
127
+ console.log('%c' + newProblems, style);
128
+ console.groupEnd();
129
+ }
130
+ else {
131
+ console.log('%c' + title + '\n\t%c' + newProblems.replace(/\n/g, '\n\t'), style + 'font-weight: bold;', style + 'font-weight: normal;');
132
+ }
133
+ }
134
+ return {
135
+ cleanProblemsCache() {
136
+ previousProblems = null;
137
+ },
138
+ problems(type, obj) {
139
+ if (types_1.hotMiddlewareOptions.warn) {
140
+ log(type, obj);
141
+ }
142
+ return true;
143
+ },
144
+ success: () => undefined,
145
+ };
146
+ }
147
+ let customHandler;
148
+ let subscribeAllHandler;
149
+ function processMessage(obj) {
150
+ switch (obj.action) {
151
+ case 'building':
152
+ console.log('[Fast refresh] bundle ' +
153
+ (obj.name ? "'" + obj.name + "' " : '') +
154
+ 'rebuilding');
155
+ break;
156
+ case 'built':
157
+ console.log('[Fast refresh] bundle ' +
158
+ (obj.name ? "'" + obj.name + "' " : '') +
159
+ 'rebuilt in ' +
160
+ obj.time +
161
+ 'ms');
162
+ // fall through
163
+ case 'sync': {
164
+ if (obj.name &&
165
+ types_1.hotMiddlewareOptions.name &&
166
+ obj.name !== types_1.hotMiddlewareOptions.name) {
167
+ return;
168
+ }
169
+ let applyUpdate = true;
170
+ if (obj.errors.length > 0) {
171
+ if (reporter)
172
+ reporter.problems('errors', obj);
173
+ applyUpdate = false;
174
+ }
175
+ else if (obj.warnings.length > 0) {
176
+ if (reporter) {
177
+ const overlayShown = reporter.problems('warnings', obj);
178
+ applyUpdate = overlayShown;
179
+ }
180
+ }
181
+ else if (reporter) {
182
+ reporter.cleanProblemsCache();
183
+ reporter.success();
184
+ }
185
+ if (applyUpdate) {
186
+ (0, process_update_1.processUpdate)(obj.hash, obj.modules, types_1.hotMiddlewareOptions);
187
+ }
188
+ break;
189
+ }
190
+ default:
191
+ if (customHandler) {
192
+ customHandler(obj);
193
+ }
194
+ }
195
+ if (subscribeAllHandler) {
196
+ subscribeAllHandler(obj);
197
+ }
198
+ }
199
+ module.exports = {
200
+ subscribeAll(handler) {
201
+ subscribeAllHandler = handler;
202
+ },
203
+ subscribe(handler) {
204
+ customHandler = handler;
205
+ },
206
+ setOptionsAndConnect,
207
+ };
208
+ //# sourceMappingURL=client.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"client.js","sourceRoot":"","sources":["../../src/hot-middleware/client.ts"],"names":[],"mappings":";;AAAA;;;;GAIG;AACH,qDAA+C;AAC/C,6CAAuC;AACvC,mCAAmE;AAEnE,IAAI,OAAO,MAAM,KAAK,WAAW,EAAE;IAClC,aAAa;CACb;KAAM,IAAI,OAAO,MAAM,CAAC,WAAW,KAAK,WAAW,EAAE;IACrD,OAAO,CAAC,IAAI,CACX,oEAAoE,CACpE,CAAC;CACF;KAAM,IAAI,4BAAoB,CAAC,WAAW,EAAE;IAC5C,OAAO,EAAE,CAAC;CACV;AAED,SAAS,oBAAoB;IAC5B,OAAO,EAAE,CAAC;AACX,CAAC;AAED,SAAS,kBAAkB;IAC1B,IAAI,MAAmB,CAAC;IACxB,IAAI,YAAY,GAAG,IAAI,CAAC,GAAG,EAAE,CAAC;IAC9B,MAAM,SAAS,GAAmC,EAAE,CAAC;IAErD,IAAI,EAAE,CAAC;IACP,MAAM,KAAK,GAAG,WAAW,CAAC,GAAG,EAAE;QAC9B,IAAI,IAAI,CAAC,GAAG,EAAE,GAAG,YAAY,GAAG,4BAAoB,CAAC,OAAO,EAAE;YAC7D,gBAAgB,EAAE,CAAC;SACnB;IACF,CAAC,EAAE,4BAAoB,CAAC,OAAO,GAA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,WAAW,GAAG,YAAY,CAAC;iBAC3B;aACD;iBAAM,IAAI,QAAQ,EAAE;gBACpB,QAAQ,CAAC,kBAAkB,EAAE,CAAC;gBAC9B,QAAQ,CAAC,OAAO,EAAE,CAAC;aACnB;YAED,IAAI,WAAW,EAAE;gBAChB,IAAA,8BAAa,EAAC,GAAG,CAAC,IAAI,EAAE,GAAG,CAAC,OAAO,EAAE,4BAAoB,CAAC,CAAC;aAC3D;YAED,MAAM;SACN;QAED;YACC,IAAI,aAAa,EAAE;gBAClB,aAAa,CAAC,GAAG,CAAC,CAAC;aACnB;KACF;IAED,IAAI,mBAAmB,EAAE;QACxB,mBAAmB,CAAC,GAAG,CAAC,CAAC;KACzB;AACF,CAAC;AAED,MAAM,CAAC,OAAO,GAAG;IAChB,YAAY,CAAC,OAA4C;QACxD,mBAAmB,GAAG,OAAO,CAAC;IAC/B,CAAC;IACD,SAAS,CAAC,OAA4C;QACrD,aAAa,GAAG,OAAO,CAAC;IACzB,CAAC;IACD,oBAAoB;CACpB,CAAC"}
@@ -0,0 +1,14 @@
1
+ /**
2
+ * Source code is adapted from
3
+ * https://github.com/webpack-contrib/webpack-hot-middleware#readme
4
+ * and rewritten in TypeScript. This file is MIT licensed
5
+ */
6
+ import { Request, Response } from 'express';
7
+ import webpack from 'webpack';
8
+ import { HotMiddlewareMessage } from './types';
9
+ export declare const webpackHotMiddleware: (compiler: webpack.Compiler) => {
10
+ (req: Request, res: Response, next: () => void): void;
11
+ publish(payload: HotMiddlewareMessage): void;
12
+ close(): void;
13
+ };
14
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/hot-middleware/index.tsx"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EAAC,OAAO,EAAE,QAAQ,EAAC,MAAM,SAAS,CAAC;AAC1C,OAAO,OAAO,MAAM,SAAS,CAAC;AAC9B,OAAO,EACN,oBAAoB,EAKpB,MAAM,SAAS,CAAC;AAWjB,eAAO,MAAM,oBAAoB,aAAc,QAAQ,QAAQ;UA0B5B,OAAO,OAAO,QAAQ,QAAQ,MAAM,IAAI;qBAUlC,oBAAoB;;CAe5D,CAAC"}