File tree Expand file tree Collapse file tree 3 files changed +2
-6
lines changed
packages/babel-preset-gatsby-package Expand file tree Collapse file tree 3 files changed +2
-6
lines changed Original file line number Diff line number Diff line change @@ -54,7 +54,6 @@ Array [
54
54
55
55
exports [` babel-preset-gatsby-package in browser mode specifies the proper plugins 1` ] = `
56
56
Array [
57
- "@babel/plugin-proposal-class-properties",
58
57
"@babel/plugin-proposal-nullish-coalescing-operator",
59
58
"@babel/plugin-proposal-optional-chaining",
60
59
"@babel/plugin-transform-runtime",
@@ -111,7 +110,6 @@ Array [
111
110
112
111
exports [` babel-preset-gatsby-package in node mode specifies the proper plugins 1` ] = `
113
112
Array [
114
- "@babel/plugin-proposal-class-properties",
115
113
"@babel/plugin-proposal-nullish-coalescing-operator",
116
114
"@babel/plugin-proposal-optional-chaining",
117
115
"@babel/plugin-transform-runtime",
Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ function preset(context, options = {}) {
4
4
const { browser = false , debug = false , nodeVersion = `10.13.0` } = options
5
5
const { NODE_ENV , BABEL_ENV } = process . env
6
6
7
- const IS_TEST = ( BABEL_ENV || NODE_ENV ) === `test`
7
+ const IS_TEST = ( BABEL_ENV || NODE_ENV ) === `test`
8
8
9
9
const browserConfig = {
10
10
useBuiltIns : false ,
@@ -39,12 +39,11 @@ function preset(context, options = {}) {
39
39
r ( `@babel/preset-flow` ) ,
40
40
] ,
41
41
plugins : [
42
- r ( `@babel/plugin-proposal-class-properties` ) ,
43
42
r ( `@babel/plugin-proposal-nullish-coalescing-operator` ) ,
44
43
r ( `@babel/plugin-proposal-optional-chaining` ) ,
45
44
r ( `@babel/plugin-transform-runtime` ) ,
46
45
r ( `@babel/plugin-syntax-dynamic-import` ) ,
47
- IS_TEST && r ( `babel-plugin-dynamic-import-node` )
46
+ IS_TEST && r ( `babel-plugin-dynamic-import-node` ) ,
48
47
] . filter ( Boolean ) ,
49
48
overrides : [
50
49
{
Original file line number Diff line number Diff line change 9
9
},
10
10
"homepage" : " https://github.com/gatsbyjs/gatsby/tree/master/packages/babel-preset-gatsby-package#readme" ,
11
11
"dependencies" : {
12
- "@babel/plugin-proposal-class-properties" : " ^7.10.1" ,
13
12
"@babel/plugin-proposal-nullish-coalescing-operator" : " ^7.10.1" ,
14
13
"@babel/plugin-proposal-optional-chaining" : " ^7.10.1" ,
15
14
"@babel/plugin-syntax-dynamic-import" : " ^7.8.3" ,
You can’t perform that action at this time.
0 commit comments