Skip to content

Commit

Permalink
fix(babel-preset-gatsby): enable transformer-regenerator (#25983)
Browse files Browse the repository at this point in the history
  • Loading branch information
wardpeet authored and KyleAMathews committed Jul 29, 2020
1 parent ba823bb commit 784577f
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ Object {
"corejs": 3,
"exclude": Array [
"transform-typeof-symbol",
"transform-regenerator",
"es.symbol",
"es.symbol.async-iterator",
"es.symbol.has-instance",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,6 @@ Object {
"corejs": 3,
"exclude": Array [
"transform-typeof-symbol",
"transform-regenerator",
"transform-spread",
"proposal-nullish-coalescing-operator",
"proposal-optional-chaining",
Expand Down Expand Up @@ -319,7 +318,6 @@ Object {
"corejs": 3,
"exclude": Array [
"transform-typeof-symbol",
"transform-regenerator",
"transform-spread",
"proposal-nullish-coalescing-operator",
"proposal-optional-chaining",
Expand Down Expand Up @@ -583,7 +581,6 @@ Object {
"corejs": 3,
"exclude": Array [
"transform-typeof-symbol",
"transform-regenerator",
"transform-spread",
"proposal-nullish-coalescing-operator",
"proposal-optional-chaining",
Expand Down Expand Up @@ -847,7 +844,6 @@ Object {
"corejs": 3,
"exclude": Array [
"transform-typeof-symbol",
"transform-regenerator",
"transform-spread",
"proposal-nullish-coalescing-operator",
"proposal-optional-chaining",
Expand Down
2 changes: 0 additions & 2 deletions packages/babel-preset-gatsby/src/dependencies.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,6 @@ export default (_?: unknown, options: IPresetOptions = {}) => {
exclude: [
// Exclude transforms that make all code slower (https://github.com/facebook/create-react-app/pull/5278)
`transform-typeof-symbol`,
// we have @babel/plugin-transform-runtime that takes care of this
`transform-regenerator`,
...polyfillsToExclude,
],
},
Expand Down
2 changes: 0 additions & 2 deletions packages/babel-preset-gatsby/src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -64,8 +64,6 @@ export default function preset(_, options = {}) {
exclude: [
// Exclude transforms that make all code slower (https://github.com/facebook/create-react-app/pull/5278)
`transform-typeof-symbol`,
// we have @babel/plugin-transform-runtime that takes care of this
`transform-regenerator`,
// we already have transforms for these
`transform-spread`,
`proposal-nullish-coalescing-operator`,
Expand Down

0 comments on commit 784577f

Please sign in to comment.