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 issue when an element with ID of exports is defined in the browser. #275

Merged
merged 1 commit into from
Dec 10, 2015
Merged

Fix issue when an element with ID of exports is defined in the browser. #275

merged 1 commit into from
Dec 10, 2015

Conversation

bnjmnt4n
Copy link
Contributor

@bnjmnt4n bnjmnt4n commented Dec 2, 2015

Elements with IDs automatically have their IDs exposed. This causes errors where module is not defined, and yet module.exports = moment-timezone is run.

If possible, could you release this as a patch release?

@bnjmnt4n
Copy link
Contributor Author

bnjmnt4n commented Dec 6, 2015

Ping any updates?

@timrwood
Copy link
Member

timrwood commented Dec 8, 2015

This export pattern is based on UMD, could you update your PR to use this check instead?

https://github.com/umdjs/umd/blob/f208d385768ed30cd0025d5415997075345cd1c0/templates/returnExportsGlobal.js#L23

…ser.

Elements with IDs automatically have their IDs exposed. This causes errors
where `module` is not defined, and yet `module.exports = moment-timezone` is
run.
@bnjmnt4n
Copy link
Contributor Author

bnjmnt4n commented Dec 9, 2015

@timrwood updated.

timrwood added a commit that referenced this pull request Dec 10, 2015
Fix issue when an element with ID of `exports` is defined in the browser.
@timrwood timrwood merged commit dde5b92 into moment:develop Dec 10, 2015
@timrwood
Copy link
Member

Thanks!

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