-
-
Notifications
You must be signed in to change notification settings - Fork 27.1k
Upgrade to webpack v2 #189
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
Changes from 1 commit
3fc5fb6
2466010
8b33bde
c775b39
8911fef
4b99807
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -35,7 +35,7 @@ | |
"babel-plugin-transform-class-properties": "6.10.2", | ||
"babel-plugin-transform-object-rest-spread": "6.8.0", | ||
"babel-plugin-transform-react-constant-elements": "6.9.1", | ||
"babel-preset-es2015": "6.9.0", | ||
"babel-preset-es2015-webpack": "^6.4.2", | ||
"babel-preset-es2016": "6.11.3", | ||
"babel-preset-react": "6.11.1", | ||
"chalk": "1.1.3", | ||
|
@@ -46,7 +46,7 @@ | |
"eslint-plugin-import": "1.10.3", | ||
"eslint-plugin-jsx-a11y": "2.0.1", | ||
"eslint-plugin-react": "5.2.2", | ||
"extract-text-webpack-plugin": "1.0.1", | ||
"extract-text-webpack-plugin": "^2.0.0-beta.3", | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Needed otherwise webpack fails with an error. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I think we must remove caret because it's in beta and api can be changed. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Ah yeah, that was an accident! Good catch! |
||
"file-loader": "0.9.0", | ||
"fs-extra": "^0.30.0", | ||
"html-webpack-plugin": "2.22.0", | ||
|
@@ -56,7 +56,7 @@ | |
"rimraf": "2.5.3", | ||
"style-loader": "0.13.1", | ||
"url-loader": "0.5.7", | ||
"webpack": "1.13.1", | ||
"webpack": "^2.1.0-beta.20", | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Also caret here |
||
"webpack-dev-server": "1.14.1" | ||
}, | ||
"devDependencies": { | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Huh, it's weird that this isn't es2015-loose. I can't think of any good reason to not use es2015-loose (and correspondingly es2015-loose-native-modules instead of either es2015-native-modules or es2015-webpack) for production.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What's the difference?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It makes all the transforms run in loose mode. It's like es2015-loose.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Haha that's what I'm asking, what is loose mode?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Loose mode generates code that is simpler, but less strictly compliant to spec. Compare output:
I'm not aware of any reason to not at least run your production build in loose mode. I'm also not aware of anybody who deliberately uses non-loose mode.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah that's it, some people would rather be compliant to the spec even though there's more output, etc