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 #133

Merged
merged 2 commits into from
Jun 27, 2018
Merged

Conversation

cherifGsoul
Copy link
Member

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


//!steal-remove-start
if (process.env.NODE_ENV !== 'production') {
observationProto[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.

Using canSymbol.for() is not needed here because observationProto is passed into assignSymbols().

@cherifGsoul cherifGsoul merged commit d8b6f24 into master Jun 27, 2018
@cherifGsoul cherifGsoul deleted the fix-webpack-debug-style branch June 27, 2018 21:15
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

2 participants