@rendiv/bundler 0.1.10 → 0.1.12

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.
package/dist/bundle.js CHANGED
@@ -33,7 +33,7 @@ export async function bundle(options) {
33
33
  <meta charset="UTF-8" />
34
34
  <style>
35
35
  * { margin: 0; padding: 0; box-sizing: border-box; }
36
- html, body, #root { width: 100%; height: 100%; overflow: hidden; }
36
+ html, body, #root { width: 100%; height: 100%; overflow: hidden; background: #000; }
37
37
  </style>
38
38
  </head>
39
39
  <body>
@@ -1 +1 @@
1
- {"version":3,"file":"render-entry-code.d.ts","sourceRoot":"","sources":["../src/render-entry-code.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,wBAAgB,uBAAuB,CACrC,cAAc,EAAE,MAAM,EACtB,SAAS,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAClC,MAAM,CA0KR"}
1
+ {"version":3,"file":"render-entry-code.d.ts","sourceRoot":"","sources":["../src/render-entry-code.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,wBAAgB,uBAAuB,CACrC,cAAc,EAAE,MAAM,EACtB,SAAS,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAClC,MAAM,CA6KR"}
@@ -15,6 +15,7 @@ import '${importPath}';
15
15
  import { getRootComponent, CompositionManagerContext, TimelineContext, CompositionContext, RendivEnvironmentContext, getPendingHoldCount } from '@rendiv/core';
16
16
  import React, { useState, useCallback, useMemo, useEffect } from 'react';
17
17
  import { createRoot } from 'react-dom/client';
18
+ import { flushSync } from 'react-dom';
18
19
 
19
20
  // Timeline overrides (embedded from timeline-overrides.json at bundle time)
20
21
  ${overridesSnippet}
@@ -163,7 +164,9 @@ const container = document.getElementById('root');
163
164
  rootInstance = createRoot(container);
164
165
 
165
166
  function rerender() {
166
- rootInstance.render(React.createElement(App));
167
+ flushSync(() => {
168
+ rootInstance.render(React.createElement(App));
169
+ });
167
170
  }
168
171
 
169
172
  rerender();
@@ -1 +1 @@
1
- {"version":3,"file":"render-entry-code.js","sourceRoot":"","sources":["../src/render-entry-code.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,MAAM,UAAU,uBAAuB,CACrC,cAAsB,EACtB,SAAmC;IAEnC,qDAAqD;IACrD,MAAM,UAAU,GAAG,cAAc,CAAC;IAElC,sEAAsE;IACtE,MAAM,gBAAgB,GAAG,SAAS,IAAI,MAAM,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC,MAAM,GAAG,CAAC;QACrE,CAAC,CAAC,iEAAiE,IAAI,CAAC,SAAS,CAAC,SAAS,CAAC,KAAK;QACjG,CAAC,CAAC,EAAE,CAAC;IAEP,OAAO;UACC,UAAU;;;;;;EAMlB,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAyJjB,CAAC;AACF,CAAC"}
1
+ {"version":3,"file":"render-entry-code.js","sourceRoot":"","sources":["../src/render-entry-code.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,MAAM,UAAU,uBAAuB,CACrC,cAAsB,EACtB,SAAmC;IAEnC,qDAAqD;IACrD,MAAM,UAAU,GAAG,cAAc,CAAC;IAElC,sEAAsE;IACtE,MAAM,gBAAgB,GAAG,SAAS,IAAI,MAAM,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC,MAAM,GAAG,CAAC;QACrE,CAAC,CAAC,iEAAiE,IAAI,CAAC,SAAS,CAAC,SAAS,CAAC,KAAK;QACjG,CAAC,CAAC,EAAE,CAAC;IAEP,OAAO;UACC,UAAU;;;;;;;EAOlB,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA2JjB,CAAC;AACF,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rendiv/bundler",
3
- "version": "0.1.10",
3
+ "version": "0.1.12",
4
4
  "license": "Apache-2.0",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",