Skip to content

Commit

Permalink
feat: ensure cmoponents show up in React devtools
Browse files Browse the repository at this point in the history
  • Loading branch information
trezy committed Jul 5, 2024
1 parent 500919f commit f3abf87
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion src/core/reconciler.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
/* eslint-disable no-empty-function */

import * as React from 'react';
import Reconciler from 'react-reconciler';
import { afterActiveInstanceBlur } from '../helpers/afterActiveInstanceBlur.js';
import { appendChild } from '../helpers/appendChild.js';
Expand Down Expand Up @@ -83,4 +84,12 @@ const reconcilerConfig = {
shouldSetTextContent,
};

export const reconciler = Reconciler(reconcilerConfig);
const reconciler = Reconciler(reconcilerConfig);

reconciler.injectIntoDevTools({
bundleType: process.env.NODE_ENV === 'production' ? 0 : 1,
rendererPackageName: '@pixi/react',
version: React.version,
});

export { reconciler };

0 comments on commit f3abf87

Please sign in to comment.