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

include Three.Legacy.js contents in bundle outro, not footer #9518

Closed
wants to merge 1 commit into from

Conversation

Rich-Harris
Copy link
Contributor

This fixes #9489 by putting all the legacy stuff inside the bundle. It involves rewriting Three.Legacy.js to reference exports rather than THREE, and e.g. BoxGeometry rather than THREE.BoxGeometry (not exports.BoxGeometry because the exports haven't been declared yet – perhaps Rollup should put the outro after the export declaration and not before).

@mrdoob
Copy link
Owner

mrdoob commented Aug 16, 2016

Hmm, this feels hacky?

Couldn't this be like the other files? (with the required imports at the top) Or does this system require all files to export something?

@Rich-Harris
Copy link
Contributor Author

Yes, you're right, it is a bit – about to send an alternative PR!

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.

r80 incorrectly handles "exports" as global
2 participants