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

fix: rework three example build, to fix webpack #53

Merged
merged 2 commits into from
Feb 20, 2018

Conversation

brandonocasey
Copy link
Contributor

No description provided.

}

// trun the global modifiction into an import and a local variable definition
code = code.replace(`THREE.${m} =`, `import * as THREE from 'three';\nconst ${m} =`);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

const will not be understood in the non-es version, I had to change it to var to be able to compile

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ahhh ok, I will fix that

@brandonocasey brandonocasey merged commit 382156b into master Feb 20, 2018
@brandonocasey brandonocasey deleted the fix/rework-build branch February 20, 2018 16:37
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.

3 participants