Closed
Description
Forgot to try 9e6d972 on an actual project and there's an issue.
It seems Babel 6 tries to read the plugins from CWD.
/Users/sindresorhus/dev/ava/node_modules/babel-core/lib/transformation/file/options/option-manager.js:193
throw new ReferenceError(messages.get("pluginUnknown", plugin, loc, i, dirname));
^
ReferenceError: Unknown plugin "transform-runtime" specified in "base" at 1, attempted to resolve relative to "/Users/sindresorhus/dev/boxen"
at /Users/sindresorhus/dev/ava/node_modules/babel-core/lib/transformation/file/options/option-manager.js:193:17
at Array.map (native)
at Function.normalisePlugins (/Users/sindresorhus/dev/ava/node_modules/babel-core/lib/transformation/file/options/option-manager.js:173:20)
at OptionManager.mergeOptions (/Users/sindresorhus/dev/ava/node_modules/babel-core/lib/transformation/file/options/option-manager.js:271:36)
at OptionManager.init (/Users/sindresorhus/dev/ava/node_modules/babel-core/lib/transformation/file/options/option-manager.js:416:10)
at File.initOptions (/Users/sindresorhus/dev/ava/node_modules/babel-core/lib/transformation/file/index.js:191:75)
at new File (/Users/sindresorhus/dev/ava/node_modules/babel-core/lib/transformation/file/index.js:122:22)
at Pipeline.transform (/Users/sindresorhus/dev/ava/node_modules/babel-core/lib/transformation/pipeline.js:42:16)
at Object.transformFileSync (/Users/sindresorhus/dev/ava/node_modules/babel-core/lib/api/node.js:116:10)
at Object.<anonymous> (/Users/sindresorhus/dev/ava/lib/babel.js:73:24)
✖ /Users/sindresorhus/dev/boxen/test.js exited with a non-zero exit code: 1
npm ERR! Test failed. See above for more details.