You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If you previously ejected but now want to upgrade, one common solution is to find the commits where you ejected (and any subsequent commits changing the configuration), revert them, upgrade, and later optionally eject again. It’s also possible that the feature you ejected for (maybe Sass or CSS Modules?) is now supported out of the box. You can find a list of notable new features in the **[Create React App 2.0 blog post](https://reactjs.org/blog/2018/10/01/create-react-app-v2.html)**.
25
+
26
+
## Breaking Changes
19
27
20
-
Like any major release, it contains a few breaking changes. We expect that they won't affect every users, but we provide them in detail below. We recommend to scan over these sections to see if something affects you. If we missed something, please file a new issue.
28
+
Like any major release, `[email protected]` contains a few breaking changes. We expect that they won't affect every user, but we recommend to scan over these sections to see if something is relevant to you. If we missed something, please file a new issue.
21
29
22
-
##Breaking Change: IE 9, IE 10, and IE 11 are no longer supported by default (but you can opt in!)
30
+
###IE 9, IE 10, and IE 11 are no longer supported by default (but you can opt in!)
23
31
24
32
We have dropped default support for Internet Explorer 9, 10, and 11. If you still need to support these browsers, follow the instructions below.
25
33
@@ -40,7 +48,7 @@ import 'react-app-polyfill/ie11'; // For IE 11 support
40
48
41
49
You can read more about [these polyfills here](https://github.com/facebook/create-react-app/tree/master/packages/react-app-polyfill).
42
50
43
-
##Breaking Change: Dynamic `import()` of a CommonJS module now has a `.default` property
51
+
###Dynamic `import()` of a CommonJS module now has a `.default` property
44
52
45
53
[Webpack 4 changed the behavior of `import()`](https://medium.com/webpack/webpack-4-import-and-commonjs-d619d626b655) to be closer in line with the specification.
##Breaking Change:`require.ensure()` is superseded by dynamic `import()`
64
+
###`require.ensure()` is superseded by dynamic `import()`
57
65
58
66
We previously allowed code splitting with a webpack-specific directive, `require.ensure()`. It is now disabled in favor of `import()`. To switch to `import()`, follow the examples below:
You can also use completely custom logic there now! This wasn't possible before.
158
170
159
-
##Breaking Change: `.mjs` file extension support was removed
171
+
### `.mjs` file extension support is removed
160
172
161
173
Change the extension of any files in your project using `.mjs` to just `.js`.
162
174
163
175
It was removed because of inconsistent support from underlying tools. We will add it back after it stops being experimental, and Jest gets built-in support for it.
164
176
177
+
### `PropTypes` definitions are now removed in production
178
+
179
+
Normally, this shouldn't affect your logic and should make the resulting bundle smaller. However, you may be relying on PropTypes definition for production logic. This is not recommended, and will break now. If a library does it, one possible solution is to file an issue in it with a proposal to use a different field (not `propTypes`) to signal that the declaration needs to be retained.
165
180
166
-
##**Anything missing?**
181
+
### Anything missing?
167
182
168
183
This was a large release, and we might have missed something.
169
184
@@ -173,7 +188,7 @@ Please [file an issue](https://github.com/facebook/create-react-app/issues/new)
173
188
174
189
If you used 2.x alphas, please [follow these instructions](https://gist.github.com/gaearon/8650d1c70e436e5eff01f396dffc4114).
175
190
176
-
###Detailed Changelog
191
+
# Detailed Changelog
177
192
178
193
**For a readable summary of the changes, [check out our blog post](https://reactjs.org/blog/2018/10/01/create-react-app-v2.html).**
0 commit comments