Skip to content

Commit

Permalink
update monkey-react-scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
smmoosavi committed Dec 25, 2018
1 parent 5c674b8 commit 8f1ec1c
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 10 deletions.
10 changes: 10 additions & 0 deletions .babelrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"plugins": [
[
"@babel/plugin-proposal-decorators",
{
"legacy": true
}
]
]
}
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"private": true,
"dependencies": {
"@babel/plugin-proposal-decorators": "^7.1.0",
"monkey-react-scripts": "^0.1.4",
"monkey-react-scripts": "^0.2.0",
"node-sass": "^4.9.3",
"postcss-inline-rtl": "^0.9.8",
"react": "^16.5.2",
Expand Down
7 changes: 2 additions & 5 deletions webpack-helpers/babelPatch.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,6 @@ module.exports.babelPatch = function babelPatch(webpackConfig, isDevelopment) {
const babelRule = findRule(webpackConfig, (rule) => {
return ('' + rule.test === '' + /\.(js|mjs|jsx|ts|tsx)$/)
});
const plugins = babelRule.options.plugins || [];
babelRule.options.plugins = [
...plugins,
["@babel/plugin-proposal-decorators", {legacy: true}],
]

babelRule.options.babelrc = true
};
8 changes: 4 additions & 4 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -6558,10 +6558,10 @@ [email protected], [email protected], "mkdirp@>=0.5 0", mkdirp@^0.5.0, mkdirp@^0.5.1, mkdi
dependencies:
minimist "0.0.8"

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

Expand Down

0 comments on commit 8f1ec1c

Please sign in to comment.