We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cd66ba0 commit 6baf3c7Copy full SHA for 6baf3c7
lib/compilers/babel-compiler.js
@@ -11,10 +11,7 @@ var defaultBabelOptions = {
11
}
12
13
module.exports = function compileBabel (scriptContent) {
14
- // directory can be an absolute or relative path
15
- // If it's a relative path, it is relative to the current working directory (process.cwd())
16
- const directory = path.resolve(__dirname, '..')
17
- const { file, config } = findBabelConfig.sync(directory);
+ const { file, config } = findBabelConfig.sync(process.cwd());
18
19
if (!file) {
20
logger.info('no .babelrc found, defaulting to default babel options')
0 commit comments