Skip to content

Commit 0cd1903

Browse files
benchmark: use version specific babel (#2087)
1 parent d78b445 commit 0cd1903

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

resources/benchmark.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,8 @@ function babelBuild(dir) {
7373
rmdirRecursive('./benchmarkDist');
7474
mkdirRecursive('./benchmarkDist');
7575

76-
const babel = require('@babel/core');
76+
const babelPath = path.join(dir, 'node_modules', '@babel', 'core');
77+
const babel = require(babelPath);
7778
for (const filepath of readdirRecursive('./src')) {
7879
const srcPath = path.join('./src', filepath);
7980
const distPath = path.join('./benchmarkDist', filepath);

0 commit comments

Comments
 (0)