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

Work with babel may throw prop "MutationObserver" undefined. #32

Closed
HairyRabbit opened this issue Jun 7, 2016 · 2 comments
Closed

Work with babel may throw prop "MutationObserver" undefined. #32

HairyRabbit opened this issue Jun 7, 2016 · 2 comments

Comments

@HairyRabbit
Copy link
Contributor

This mistake maybe happen on
https://github.com/mozilla/nunjucks/blob/master/browser/nunjucks-slim.js#L1340
can't work with 'use strict'.

I add ignore field on babelrc would fix this:

{
  ignore: ['node_modules/nunjucks/*']
}

Are there better ways to solve problems?

Anything help.

Thanks. :)

@at0g at0g closed this as completed Jun 8, 2016
@at0g
Copy link
Owner

at0g commented Jun 8, 2016

The issue you're having is upstream from this lib - I can't really do anything about it here.

With babel, it makes sense to exclude node_modules that don't require transpiling as you'll get faster build time as a result.

@HairyRabbit
Copy link
Contributor Author

@at0g
:) 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

No branches or pull requests

2 participants