Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Drop support for older browsers (#2918)
Older browsers can still be supported through transpilation and polyfills
- Loading branch information
1 parent
31e8484
commit 0e52e54
Showing
8 changed files
with
38 additions
and
61 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
{ | ||
"plugins": [ | ||
"@babel/plugin-transform-flow-strip-types", | ||
"./resources/inline-invariant" | ||
], | ||
"env": { | ||
"cjs": { | ||
"presets": [ | ||
[ | ||
"@babel/preset-env", | ||
{ "modules": "commonjs", "targets": { "node": "10" } } | ||
] | ||
], | ||
"plugins": [ | ||
["./resources/add-extension-to-import-paths", { "extension": "js" }] | ||
] | ||
}, | ||
"mjs": { | ||
"presets": [ | ||
["@babel/preset-env", { "modules": false, "targets": { "node": "10" } }] | ||
], | ||
"plugins": [ | ||
["./resources/add-extension-to-import-paths", { "extension": "mjs" }] | ||
] | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,42 +1,4 @@ | ||
{ | ||
"presets": [["@babel/preset-env", { "targets": { "node": "current" } }]], | ||
"plugins": ["@babel/plugin-transform-flow-strip-types"], | ||
"overrides": [ | ||
{ | ||
"exclude": ["src/__testUtils__/**/*", "**/__tests__/**/*"], | ||
"presets": ["@babel/preset-env"], | ||
"plugins": [ | ||
["@babel/plugin-transform-classes", { "loose": true }], | ||
["@babel/plugin-transform-destructuring", { "loose": true }], | ||
["@babel/plugin-transform-spread", { "loose": true }], | ||
["@babel/plugin-transform-for-of", { "assumeArray": true }] | ||
], | ||
"env": { | ||
"cjs": { | ||
"presets": [["@babel/preset-env", { "modules": "commonjs" }]], | ||
"plugins": [ | ||
[ | ||
"./resources/add-extension-to-import-paths", | ||
{ "extension": "js" } | ||
], | ||
"./resources/inline-invariant" | ||
] | ||
}, | ||
"mjs": { | ||
"presets": [["@babel/preset-env", { "modules": false }]], | ||
"plugins": [ | ||
[ | ||
"./resources/add-extension-to-import-paths", | ||
{ "extension": "mjs" } | ||
], | ||
"./resources/inline-invariant" | ||
] | ||
} | ||
} | ||
}, | ||
{ | ||
"include": "src/error/GraphQLError.js", | ||
"plugins": [["@babel/plugin-transform-classes", { "loose": false }]] | ||
} | ||
] | ||
"presets": [["@babel/preset-env", { "targets": { "node": "current" } }]] | ||
} |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters