Skip to content

Add missing default export#7284

Open
kibertoad wants to merge 1 commit intophaserjs:masterfrom
kibertoad:fix/exports
Open

Add missing default export#7284
kibertoad wants to merge 1 commit intophaserjs:masterfrom
kibertoad:fix/exports

Conversation

@kibertoad
Copy link
Copy Markdown
Contributor

@kibertoad kibertoad commented Apr 16, 2026

This PR (delete as applicable)

  • Fixes a bug

Describe the changes below:

Add missing default declaration for ESM exports

fixes #7280


Note

Low Risk
Small, additive module-export change; main risk is minor bundler/interop differences for consumers relying on import semantics.

Overview
Adds a missing default export to src/phaser-esm.js, exporting a single aggregate object containing the existing named module exports (e.g., Game, Scene, Physics) and constants (e.g., AUTO, WEBGL).

This enables import Phaser from '...'-style ESM consumption in addition to the existing named exports.

Reviewed by Cursor Bugbot for commit 9486524. Bugbot is set up for automated code reviews on this repo. Configure here.

@kibertoad
Copy link
Copy Markdown
Contributor Author

@photonstorm could you please take a look?

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.

No matching export in "node_modules/phaser/dist/phaser.esm.js" for import "default"

1 participant