From e5ce1ab76853a367e1af36215dcf9b10db521d1f Mon Sep 17 00:00:00 2001 From: jeroenvalcke Date: Mon, 13 Nov 2017 17:48:25 +0100 Subject: Require resolve babel plugin so it searches the plugin from the cwd() --- lib/moduleEnv.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/moduleEnv.js b/lib/moduleEnv.js index 789ea2f..febc792 100644 --- a/lib/moduleEnv.js +++ b/lib/moduleEnv.js @@ -76,7 +76,7 @@ function jsExtension(module, filename) { module._compile = function (content, filename) { content = babelCore.transform(content, { - plugins: ["transform-es2015-block-scoping"], + plugins: [require.resolve("babel-plugin-transform-es2015-block-scoping")], retainLines: true, filename: filename }).code; -- cgit v1.2.3