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

CRA 2.1.8 update #1073

Merged
merged 6 commits into from
May 6, 2019
Merged

CRA 2.1.8 update #1073

merged 6 commits into from
May 6, 2019

Conversation

Gnito
Copy link
Contributor

@Gnito Gnito commented May 3, 2019

Create React App (CRA) 2.1.8 - Breaking changes:

Polyfills for IE 9, IE 10, and IE 11 are no longer included by default (but you can opt in!)

yarn add react-app-polyfill

Next, place one of the following lines at the very top of src/index.js:
import 'react-app-polyfill/ie9'; // For IE 9-11 support
import 'react-app-polyfill/ie11'; // For IE 11 support

Code splitting is still not included. We need to figure out some Webpack configuration for SSR before it can be introduced.

Autoprefixer is now exposed through package.json with keyword "browserlist".
The default comes from CRA:

"browserslist": {
    "production": [">0.2%", "not dead", "not op_mini all"],
    "development": [
      "last 1 chrome version",
      "last 1 firefox version",
      "last 1 safari version"
    ]
  },

Previously this was:

  [
    '>1%',
    'last 4 versions',
    'Firefox ESR',
    'not ie < 9', // React doesn't support IE8 anyway
  ],

Other things to check, when updating from upstream:

@Gnito Gnito temporarily deployed to sharetribe-starter-app May 3, 2019 10:45 Inactive
@Gnito Gnito changed the title Cra2 update CRA 2.1.8 update May 3, 2019
@Gnito Gnito temporarily deployed to sharetribe-starter-app May 3, 2019 19:35 Inactive
@Gnito Gnito merged commit 313ab16 into master May 6, 2019
@Gnito Gnito deleted the cra2-update branch May 8, 2019 10:40
@Gnito Gnito mentioned this pull request May 8, 2019
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

Successfully merging this pull request may close these issues.

1 participant