@remotion/bundler 2.6.0 → 2.6.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,3 +1,9 @@
1
+ /**
2
+ * ⚠️ Be careful when refactoring this file!
3
+ * This gets injected into every file of the browser.
4
+ * You cannot have returns, optional chains, inverse the if statement etc.
5
+ * Check the Typescript output in dist/ to see that no extra `var` statements were produced
6
+ */
1
7
  /**
2
8
  * Source code is adapted from https://github.com/WebHotelier/webpack-fast-refresh#readme and rewritten in Typescript. This file is MIT licensed.
3
9
  */
@@ -1 +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"}
1
+ {"version":3,"file":"loader.d.ts","sourceRoot":"","sources":["../../src/fast-refresh/loader.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH;;GAEG;AAEH;;;;;;;;;;;;;;;;;;;;;;GAsBG;AAEH,OAAO,EAAC,gBAAgB,EAAC,MAAM,SAAS,CAAC;AAyFzC,QAAA,MAAM,kBAAkB,EAAE,gBAEzB,CAAC;AAEF,eAAe,kBAAkB,CAAC"}
@@ -1,6 +1,9 @@
1
1
  "use strict";
2
2
  /**
3
- * Source code is adapted from https://github.com/WebHotelier/webpack-fast-refresh#readme and rewritten in Typescript. This file is MIT licensed.
3
+ * ⚠️ Be careful when refactoring this file!
4
+ * This gets injected into every file of the browser.
5
+ * You cannot have returns, optional chains, inverse the if statement etc.
6
+ * Check the Typescript output in dist/ to see that no extra `var` statements were produced
4
7
  */
5
8
  Object.defineProperty(exports, "__esModule", { value: true });
6
9
  // This file is copied from the @vercel/next.js, with removed TS annotations
@@ -9,7 +12,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
9
12
  // This function gets unwrapped into global scope, which is why we don't invert
10
13
  // if-blocks. Also, you cannot use `return`.
11
14
  function RefreshModuleRuntime() {
12
- var _a, _b, _c, _d, _e, _f;
13
15
  // Legacy CSS implementations will `eval` browser code in a Node.js context
14
16
  // to extract CSS. For backwards compatibility, we need to check we're in a
15
17
  // browser context before continuing.
@@ -20,7 +22,8 @@ function RefreshModuleRuntime() {
20
22
  // eslint-disable-next-line no-proto
21
23
  const currentExports = module.__proto__.exports;
22
24
  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) {
25
+ // eslint-disable-next-line @typescript-eslint/prefer-optional-chain
26
+ if (module.hot && module.hot.data && module.hot.data.prevExports) {
24
27
  prevExports = module.hot.data.prevExports;
25
28
  }
26
29
  // This cannot happen in MainTemplate because the exports mismatch between
@@ -31,12 +34,12 @@ function RefreshModuleRuntime() {
31
34
  if (self.$RefreshHelpers$.isReactRefreshBoundary(currentExports)) {
32
35
  // Save the previous exports on update so we can compare the boundary
33
36
  // signatures.
34
- (_c = module.hot) === null || _c === void 0 ? void 0 : _c.dispose((data) => {
37
+ module.hot.dispose((data) => {
35
38
  data.prevExports = currentExports;
36
39
  });
37
40
  // Unconditionally accept an update to this module, we'll check if it's
38
41
  // still a Refresh Boundary later.
39
- (_d = module.hot) === null || _d === void 0 ? void 0 : _d.accept();
42
+ module.hot.accept();
40
43
  // This field is set when the previous version of this module was a
41
44
  // Refresh Boundary, letting us know we need to check for invalidation or
42
45
  // enqueue an update.
@@ -50,7 +53,7 @@ function RefreshModuleRuntime() {
50
53
  // function, we want to invalidate the boundary.
51
54
  if (self.$RefreshHelpers$.shouldInvalidateReactRefreshBoundary(prevExports, currentExports)) {
52
55
  // @ts-expect-error
53
- (_e = module.hot) === null || _e === void 0 ? void 0 : _e.invalidate();
56
+ module.hot.invalidate();
54
57
  }
55
58
  else {
56
59
  self.$RefreshHelpers$.scheduleUpdate();
@@ -65,7 +68,7 @@ function RefreshModuleRuntime() {
65
68
  const isNoLongerABoundary = prevExports !== null;
66
69
  if (isNoLongerABoundary) {
67
70
  // @ts-expect-error
68
- (_f = module.hot) === null || _f === void 0 ? void 0 : _f.invalidate();
71
+ module.hot.invalidate();
69
72
  }
70
73
  }
71
74
  }
@@ -1 +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;QAC5B,IAAI,IAAI,CAAC,gBAAgB,CAAC,sBAAsB,CAAC,cAAc,CAAC,EAAE;YACjE,qEAAqE;YACrE,cAAc;YACd,MAAA,MAAM,CAAC,GAAG,0CAAE,OAAO,CAAC,CAAC,IAAI,EAAE,EAAE;gBAC5B,IAAI,CAAC,WAAW,GAAG,cAAc,CAAC;YACnC,CAAC,CAAC,CAAC;YAC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IAAI,CAAC,gBAAgB,CAAC,oCAAoC,CACzD,WAAW,EACX,cAAc,CACd,EACA;oBACD,mBAAmB;oBAClB,MAAM,CAAC,GAA8B,CAAC,UAAU,EAAE,CAAC;iBACpD;qBAAM;oBACN,IAAI,CAAC,gBAAgB,CAAC,cAAc,EAAE,CAAC;iBACvC;aACD;SACD;aAAM;YACN,yEAAyE;YACzE,uDAAuD;YACvD,oEAAoE;YACpE,oEAAoE;YACpE,MAAM,mBAAmB,GAAG,WAAW,KAAK,IAAI,CAAC;YACjD,IAAI,mBAAmB,EAAE;gBACxB,mBAAmB;gBAClB,MAAM,CAAC,GAA0B,CAAC,UAAU,EAAE,CAAC;aAChD;SACD;KACD;AACF,CAAC;AAED,IAAI,oBAAoB,GAAG,oBAAoB,CAAC,QAAQ,EAAE,CAAC;AAC3D,oBAAoB,GAAG,oBAAoB,CAAC,KAAK,CAChD,oBAAoB,CAAC,OAAO,CAAC,GAAG,CAAC,GAAG,CAAC,EACrC,oBAAoB,CAAC,WAAW,CAAC,GAAG,CAAC,CACrC,CAAC;AAEF,MAAM,kBAAkB,GAAqB,UAAU,MAAM,EAAE,cAAc;IAC5E,IAAI,CAAC,QAAQ,CAAC,IAAI,EAAE,GAAG,MAAM,QAAQ,oBAAoB,EAAE,EAAE,cAAc,CAAC,CAAC;AAC9E,CAAC,CAAC;AAEF,kBAAe,kBAAkB,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@remotion/bundler",
3
- "version": "2.6.0",
3
+ "version": "2.6.1",
4
4
  "description": "Bundler for Remotion",
5
5
  "main": "dist/index.js",
6
6
  "sideEffects": false,
@@ -29,7 +29,7 @@
29
29
  "memfs": "^3.4.0",
30
30
  "mime-types": "^2.1.34",
31
31
  "react-refresh": "^0.9.0-rc.2",
32
- "remotion": "2.6.0",
32
+ "remotion": "2.6.1",
33
33
  "semver": "7.3.4",
34
34
  "source-map": "^0.5.7",
35
35
  "source-map-loader": "^3.0.0",
@@ -55,5 +55,5 @@
55
55
  "publishConfig": {
56
56
  "access": "public"
57
57
  },
58
- "gitHead": "643d795d9a64b2e338ee7179a2133927ea31387e"
58
+ "gitHead": "cb9c52b4f704cc14f7b810221be89fdb5e1ed5af"
59
59
  }