Use babel-node
instead of ts-node
when running benchmark script
Summary: `ts-node` does transformation using tsc. Do transformation with Babel instead so that the generation is consistent with Jest and the packed output. We still need `ts-node` around since various systems rely on it being present to enable `.ts` config files. This also enables transformation of any JS files. Reviewed By: yungsters Differential Revision: D45722106 fbshipit-source-id: 51b7a4f6a1532bea1133d59e626297d3b40f1762
This commit is contained in:
committed by
Facebook GitHub Bot
parent
82096a1465
commit
e409bfb43a
@@ -44,6 +44,7 @@
|
||||
"@babel/cli": "^7.20.7",
|
||||
"@babel/core": "^7.20.7",
|
||||
"@babel/eslint-parser": "^7.19.1",
|
||||
"@babel/node": "^7.20.7",
|
||||
"@babel/preset-env": "^7.20.2",
|
||||
"@babel/preset-typescript": "^7.21.4",
|
||||
"@types/glob": "^8.1.0",
|
||||
|
Reference in New Issue
Block a user