mirror of
https://github.com/zhigang1992/create-react-app.git
synced 2026-04-28 09:25:42 +08:00
Drop IE 11 support by default (#5090)
* Drop ie 11 support and move polyfills to a new package * More useful directions for what entry point to use https://github.com/facebook/create-react-app/pull/5090#discussion_r220313783 * Clear up what file this polyfill goes in https://github.com/facebook/create-react-app/pull/5090#discussion_r220313980 * Polyfill `window`, not `global` * Remove proxy polyfill file
This commit is contained in:
@@ -22,7 +22,7 @@ module.exports = (resolve, rootDir, isEjecting) => {
|
||||
// in Jest configs. We need help from somebody with Windows to determine this.
|
||||
const config = {
|
||||
collectCoverageFrom: ['src/**/*.{js,jsx}'],
|
||||
setupFiles: [resolve('config/polyfills.js')],
|
||||
setupFiles: ['react-app-polyfill/jsdom'],
|
||||
setupTestFrameworkScriptFile: setupTestsFile,
|
||||
testMatch: [
|
||||
'<rootDir>/src/**/__tests__/**/*.{js,jsx}',
|
||||
|
||||
Reference in New Issue
Block a user