Upgrade fbjs-scripts (#18684)

* Upgrade fbjs-scripts

This script takes into account the NODE_ENV as part of jest cache keys.
This avoids flaky tests since we depend on different transforms in prod
and dev.

* Upgrade Fresh test to Babel 7 transform
This commit is contained in:
Sebastian Markbåge
2020-04-20 18:20:03 -07:00
committed by GitHub
parent 5f7b175b35
commit 0960b7ba58
4 changed files with 331 additions and 542 deletions

View File

@@ -56,7 +56,7 @@
"eslint-plugin-no-for-of-loops": "^1.0.0",
"eslint-plugin-react": "^6.7.1",
"eslint-plugin-react-internal": "link:./scripts/eslint-rules",
"fbjs-scripts": "0.8.3",
"fbjs-scripts": "1.2.0",
"filesize": "^6.0.1",
"flow-bin": "0.97",
"glob": "^7.1.6",

View File

@@ -415,7 +415,7 @@ describe('ReactFreshBabelPlugin', () => {
}
`,
{
plugins: ['transform-es2015-modules-commonjs'],
plugins: ['@babel/transform-modules-commonjs'],
},
),
).toMatchSnapshot();

View File

@@ -289,13 +289,12 @@ exports[`ReactFreshBabelPlugin includes custom hooks into the signatures when co
Object.defineProperty(exports, "__esModule", {
value: true
});
var _s = $RefreshSig$();
exports.default = App;
var _hooks = require("./hooks");
var _s = $RefreshSig$();
function App() {
_s();

864
yarn.lock

File diff suppressed because it is too large Load Diff