react-pixi-fiber 1.0.1 → 1.0.3

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-pixi-fiber",
3
- "version": "1.0.1",
3
+ "version": "1.0.3",
4
4
  "description": "React Fiber renderer for PixiJS",
5
5
  "main": "index.js",
6
6
  "umd:main": "index.umd.js",
@@ -119,7 +119,9 @@ export function cancelTimeout(id) {
119
119
  }
120
120
 
121
121
  export function clearContainer(container) {
122
- container.removeChildren();
122
+ if (container) {
123
+ container.removeChildren();
124
+ }
123
125
  }
124
126
 
125
127
  export function commitMount(instance, type, props, internalHandle) {
package/src/render.js CHANGED
@@ -1,7 +1,8 @@
1
1
  import invariant from "fbjs/lib/invariant";
2
+ import { version } from "react";
2
3
 
3
4
  export function getDevToolsVersion() {
4
- return require("react").version;
5
+ return version;
5
6
  }
6
7
 
7
8
  export const roots = new Map();
@@ -21406,7 +21406,9 @@
21406
21406
  clearTimeout(id);
21407
21407
  }
21408
21408
  function clearContainer(container) {
21409
- container.removeChildren();
21409
+ if (container) {
21410
+ container.removeChildren();
21411
+ }
21410
21412
  }
21411
21413
  function commitMount(instance, type, props, internalHandle) {
21412
21414
  {
@@ -21477,7 +21479,7 @@
21477
21479
  var unstable_batchedUpdates = ReactPixiFiberAsPrimaryRenderer.batchedUpdates;
21478
21480
 
21479
21481
  function getDevToolsVersion() {
21480
- return require("react").version;
21482
+ return React.version;
21481
21483
  }
21482
21484
  var roots = new Map();
21483
21485
  /*