Skip to content

Commit 8f1ec1c

Browse files
committed
update monkey-react-scripts
1 parent 5c674b8 commit 8f1ec1c

File tree

4 files changed

+17
-10
lines changed

4 files changed

+17
-10
lines changed

.babelrc

+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
{
2+
"plugins": [
3+
[
4+
"@babel/plugin-proposal-decorators",
5+
{
6+
"legacy": true
7+
}
8+
]
9+
]
10+
}

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"private": true,
55
"dependencies": {
66
"@babel/plugin-proposal-decorators": "^7.1.0",
7-
"monkey-react-scripts": "^0.1.4",
7+
"monkey-react-scripts": "^0.2.0",
88
"node-sass": "^4.9.3",
99
"postcss-inline-rtl": "^0.9.8",
1010
"react": "^16.5.2",

webpack-helpers/babelPatch.js

+2-5
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,6 @@ module.exports.babelPatch = function babelPatch(webpackConfig, isDevelopment) {
55
const babelRule = findRule(webpackConfig, (rule) => {
66
return ('' + rule.test === '' + /\.(js|mjs|jsx|ts|tsx)$/)
77
});
8-
const plugins = babelRule.options.plugins || [];
9-
babelRule.options.plugins = [
10-
...plugins,
11-
["@babel/plugin-proposal-decorators", {legacy: true}],
12-
]
8+
9+
babelRule.options.babelrc = true
1310
};

yarn.lock

+4-4
Original file line numberDiff line numberDiff line change
@@ -6558,10 +6558,10 @@ [email protected], [email protected], "mkdirp@>=0.5 0", mkdirp@^0.5.0, mkdirp@^0.5.1, mkdi
65586558
dependencies:
65596559
minimist "0.0.8"
65606560

6561-
monkey-react-scripts@^0.1.4:
6562-
version "0.1.4"
6563-
resolved "https://registry.yarnpkg.com/monkey-react-scripts/-/monkey-react-scripts-0.1.4.tgz#4eeb0c388a1628c038783bcd38f43b5d21e5ea6c"
6564-
integrity sha512-NZwTpl8IA1lDAAY6t8K/UW/Bi0y+T3/z9R0BcNuWSd8wBi9VdtnMno8zclyr4JDvyTLq0n7sR4ZTpNLZKotRpA==
6561+
monkey-react-scripts@^0.2.0:
6562+
version "0.2.0"
6563+
resolved "https://registry.yarnpkg.com/monkey-react-scripts/-/monkey-react-scripts-0.2.0.tgz#dcb8029a7ff6fa4cd5dceb66664ff61ccef94321"
6564+
integrity sha512-hvAEe5gpjf3qgx0meSsRQCvdWlsub8H/G4nSf/SOYKyW68PBHzZ7SdIYcf2rGVFPMi4zu3gdhvg+CxKuTFa9PQ==
65656565
dependencies:
65666566
react-dev-utils "^5.0.0"
65676567

0 commit comments

Comments
 (0)