-
-
Notifications
You must be signed in to change notification settings - Fork 4.9k
-
-
Notifications
You must be signed in to change notification settings - Fork 4.9k
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
momentjs breaks sourcemaps #686
Comments
import with |
can you set |
@gdi2290 with There is an opinion, that this problem caused with some localization characters in map file |
can you add moment to be ignored |
@gdi2290 with 'node_modules/moment' in source-map-loader excludes also no effect. Furthermore, moment definitions still present in main.map file. |
Yes, my browser cache was disabled. So, after few experiments I found, what it's google chrome v51.0 problem. On chrome "canary" all source maps are valid. @gdi2290, thanks for your answer! |
But it's still strange what |
@holiber how did you find out that this is a Chrome 51 problem? How did you fix it? Using Webpack config has A fix for us was to include either of the following as a Webpack plugin:
Note that the first solution works but is broken, since there's no Ping @lanceharper @ccastarivale; this happened in https://github.com/trueprint/arivale-coach-client/commit/37b7a12b54e4068613b5d487c6cb12bda7a77823. |
@yangmillstheory, I installed "Chome Canary" - version of Google Chrome that contains all last changes and bugfixes. Canary Chrome has no problems with sourcemaps. I don't know how to fix it in Chrome 51.0. |
Until univeral issue PatrickJS#686 is resolved, with the new angular2 compiler for 2.1.1
[x] bug report
When I import momentjs in clean project all sourcemaps became broken
how to reproduce:
npm install moment
add import
import * as moment from 'moment/moment';
in ngOnInit method add momentjs usage:
var date = moment(new Date()).format();
home.component.ts contains main.browser.ts
Any idea how to fix? Maybe it's momentjs problem, or webpack config?
The text was updated successfully, but these errors were encountered: