babel / minify

:scissors: An ES6+ aware minifier based on the Babel toolchain (beta)
https://babeljs.io/repl
MIT License
4.39k stars 225 forks source link

.babelrc not being read when using minify #927

Open kevupton opened 6 years ago

kevupton commented 6 years ago

Describe the bug babel minify does not read the .babelrc in the project root.

To Reproduce

Minimal code to reproduce the bug

Actual Output

If there is no Error thrown,

Expected Output

Stack Trace

If applicable,

Configuration

How are you using babel-minify?

babel-minify CLI

babel-minify version: 0.4.3

babel version : 7.0.0-beta.49

babel-minify-config:

{
  removeConsole: true,
  keepFnNames: true
}

babelrc:

{
  plugins: [],
  presets: []
}

Possible solution

Additional context