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 dev code for webpack compatibility #64

Merged
merged 2 commits into from
Jul 4, 2018

Conversation

cherifGsoul
Copy link
Member

This fixes the first part of this issue canjs/canjs#4170 to remove debug code from the production builds.

"can.getName": function() {
//!steal-remove-start
if (process.env.NODE_ENV !== 'production') {
simpleMapProto[canSymbol.for("can.getName")] = function() {
Copy link
Contributor

Choose a reason for hiding this comment

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

This canSymbol.for() isn't needed since simpleMapProto is passed into assignSymbols

Copy link
Member Author

Choose a reason for hiding this comment

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

Thanks, it's fixed!

@chasenlehara chasenlehara merged commit 6c2d071 into master Jul 4, 2018
@chasenlehara chasenlehara deleted the fix-webpack-debug-style branch July 4, 2018 01:02
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.

None yet

3 participants