Skip to content

Commit 2b97304

Browse files
author
Vincent
authored
rm decorator support (#65)
1 parent b0a47c6 commit 2b97304

File tree

5 files changed

+6
-22
lines changed

5 files changed

+6
-22
lines changed

.nvmrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
6
1+
8

config/webpack.defaults.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,6 @@ const babelOptions = {
3333
],
3434
'@babel/plugin-syntax-dynamic-import',
3535
'@babel/plugin-syntax-import-meta',
36-
['@babel/plugin-proposal-decorators', { decoratorsBeforeExport: true }],
3736
'@babel/plugin-proposal-class-properties',
3837
'@babel/plugin-proposal-json-strings',
3938
'@babel/plugin-proposal-function-sent',

package.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@firstlookmedia/react-scripts",
3-
"version": "2.0.0-rc15",
3+
"version": "2.0.0-rc16",
44
"description": "shared react site configs",
55
"author": "First Look Media",
66
"license": "MIT",
@@ -15,7 +15,6 @@
1515
"@babel/cli": "^7.0.0",
1616
"@babel/core": "^7.0.0",
1717
"@babel/plugin-proposal-class-properties": "^7.0.0",
18-
"@babel/plugin-proposal-decorators": "^7.0.0",
1918
"@babel/plugin-proposal-export-namespace-from": "^7.0.0",
2019
"@babel/plugin-proposal-function-sent": "^7.0.0",
2120
"@babel/plugin-proposal-json-strings": "^7.0.0",

scripts/utils/babelTransform.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@ module.exports = babelJest.createTransformer({
1313
],
1414
'@babel/plugin-syntax-dynamic-import',
1515
'@babel/plugin-syntax-import-meta',
16-
'@babel/plugin-proposal-decorators',
1716
'@babel/plugin-proposal-class-properties',
1817
'@babel/plugin-proposal-json-strings',
1918
'@babel/plugin-proposal-function-sent',
@@ -22,5 +21,8 @@ module.exports = babelJest.createTransformer({
2221
'@babel/plugin-proposal-throw-expressions',
2322
'@babel/plugin-proposal-optional-chaining',
2423
'@babel/plugin-proposal-nullish-coalescing-operator',
25-
].map(require.resolve),
24+
].map(plugin =>
25+
(Array.isArray(plugin)
26+
? require.resolve(plugin[0], plugin[1])
27+
: require.resolve(plugin))),
2628
});

yarn.lock

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -288,15 +288,6 @@
288288
"@babel/helper-create-class-features-plugin" "^7.4.4"
289289
"@babel/helper-plugin-utils" "^7.0.0"
290290

291-
"@babel/plugin-proposal-decorators@^7.0.0":
292-
version "7.4.4"
293-
resolved "https://registry.yarnpkg.com/@babel/plugin-proposal-decorators/-/plugin-proposal-decorators-7.4.4.tgz#de9b2a1a8ab0196f378e2a82f10b6e2a36f21cc0"
294-
integrity sha512-z7MpQz3XC/iQJWXH9y+MaWcLPNSMY9RQSthrLzak8R8hCj0fuyNk+Dzi9kfNe/JxxlWQ2g7wkABbgWjW36MTcw==
295-
dependencies:
296-
"@babel/helper-create-class-features-plugin" "^7.4.4"
297-
"@babel/helper-plugin-utils" "^7.0.0"
298-
"@babel/plugin-syntax-decorators" "^7.2.0"
299-
300291
"@babel/plugin-proposal-export-namespace-from@^7.0.0":
301292
version "7.2.0"
302293
resolved "https://registry.yarnpkg.com/@babel/plugin-proposal-export-namespace-from/-/plugin-proposal-export-namespace-from-7.2.0.tgz#308fd4d04ff257fc3e4be090550840eeabad5dd9"
@@ -386,13 +377,6 @@
386377
dependencies:
387378
"@babel/helper-plugin-utils" "^7.0.0"
388379

389-
"@babel/plugin-syntax-decorators@^7.2.0":
390-
version "7.2.0"
391-
resolved "https://registry.yarnpkg.com/@babel/plugin-syntax-decorators/-/plugin-syntax-decorators-7.2.0.tgz#c50b1b957dcc69e4b1127b65e1c33eef61570c1b"
392-
integrity sha512-38QdqVoXdHUQfTpZo3rQwqQdWtCn5tMv4uV6r2RMfTqNBuv4ZBhz79SfaQWKTVmxHjeFv/DnXVC/+agHCklYWA==
393-
dependencies:
394-
"@babel/helper-plugin-utils" "^7.0.0"
395-
396380
"@babel/plugin-syntax-dynamic-import@^7.0.0", "@babel/plugin-syntax-dynamic-import@^7.2.0":
397381
version "7.2.0"
398382
resolved "https://registry.yarnpkg.com/@babel/plugin-syntax-dynamic-import/-/plugin-syntax-dynamic-import-7.2.0.tgz#69c159ffaf4998122161ad8ebc5e6d1f55df8612"

0 commit comments

Comments
 (0)