Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

remove inline require for esm compatibility #283

Merged
merged 1 commit into from
Sep 1, 2022

Conversation

wentokay
Copy link
Contributor

There's an inline require statement in the current esmodules build and this isn't a recognised expression in esmodules, so it breaks with tools like Vite which have no commonjs support.

This PR moves the inline require to a regular import

https://unpkg.com/react-pixi-fiber@1.0.1/es/react-pixi-fiber.production.min.js
Screenshot 2022-08-29 at 12 10 35

@codesandbox-ci
Copy link

This pull request is automatically built and testable in CodeSandbox.

To see build info of the built libraries, click here or the icon next to each commit SHA.

Latest deployment of this branch, based on commit 4c25467:

Sandbox Source
React Configuration
React Typescript Configuration
examples Configuration

@michalochman
Copy link
Owner

Thanks @wentokay

@michalochman michalochman merged commit 765b892 into michalochman:master Sep 1, 2022
@michalochman
Copy link
Owner

Fixed in react-pixi-fiber@1.0.2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants