Skip to content

Commit

Permalink
refactor(render): fix circular dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
remarkablemark committed Jan 10, 2024
1 parent 393b2ea commit 8e1dd99
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
4 changes: 3 additions & 1 deletion src/render/gameobject.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,9 @@ import Phaser from 'phaser';
import type { JSX } from 'react';

import { isValidElement } from '../element';
import { attachRef, createContainer, setProps } from '.';
import { createContainer } from './container';
import { setProps } from './props';
import { attachRef } from './ref';

/**
* Creates Phaser game object and adds it to the container.
Expand Down
3 changes: 2 additions & 1 deletion src/render/render.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
import Phaser from 'phaser';
import type { JSX } from 'react';

import { createContainer, createGameObject } from '.';
import { createContainer } from './container';
import { createGameObject } from './gameobject';

/**
* Renders a piece of JSX into a Phaser scene.
Expand Down

0 comments on commit 8e1dd99

Please sign in to comment.