From 0d6017cf2b6e6fb5c1ffea5b62af86e776ad3938 Mon Sep 17 00:00:00 2001 From: Ivan Goncharov Date: Tue, 13 Aug 2019 16:32:15 +0300 Subject: [PATCH] benchmark: use version specific babel --- resources/benchmark.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/resources/benchmark.js b/resources/benchmark.js index 244dacf50b..36595d9976 100644 --- a/resources/benchmark.js +++ b/resources/benchmark.js @@ -73,7 +73,8 @@ function babelBuild(dir) { rmdirRecursive('./benchmarkDist'); mkdirRecursive('./benchmarkDist'); - const babel = require('@babel/core'); + const babelPath = path.join(dir, 'node_modules', '@babel', 'core'); + const babel = require(babelPath); for (const filepath of readdirRecursive('./src')) { const srcPath = path.join('./src', filepath); const distPath = path.join('./benchmarkDist', filepath);