-
-
Notifications
You must be signed in to change notification settings - Fork 5
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
ember build --env production
fails when using ember-power-datepicker
#8
Comments
FYI this also happens when installing |
Hi, seems related to this issue babel/minify/pull/517. I made a quick test and it seems that bumping babel-preset-babili version from 0.0.12 to 0.1.1 in https://github.com/ember-cli/broccoli-babili fixes it. |
I am seeing this as well (using |
Can you test with the latest version? Many bugs have been fixed in 0.2.0's underlying babili version... |
Confirmed that this is fixed with 0.2.0. Thanks! |
I'm not sure whether this is an ember-cli-babili problem (because all of the backtrace looks to be in there/dependencies) or with ember-power-datepicker because that's the only addon I've used so far that's had this issue, so I've reported it in both places (see cibernox/ember-power-datepicker#17 for the related issue on ember-power-select).
In short, when
ember-power-datepicker
is included in an app that usesember-cli-babili
and theconfig/targets.js
file is configured to allow some native ES2015/ES2016 syntax (i.e., only targeting very modern browsers), the production build process fails.Steps to reproduce (using ember-cli 2.13.1):
ember new babili-test
cd babili-test
npm uninstall --save-dev ember-cli-uglify
ember install ember-cli-babili
config/targets.js
to removeie 9
(at this point, runningember build --env production
will succeed)ember install ember-power-datepicker
ember build --env production
The build fails with this error:
If you then revert
config/targets.js
(so that 'ie 9' is listed again) the build succeeds.The text was updated successfully, but these errors were encountered: