question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

loadPartialConfig fails to clear the overrides/test/include/exclude fields from its result

See original GitHub issue

I’m submitting a bug report

Webpack Version: 3.10.0

Babel Core Version: 7.0.0-beta.53

Babel Loader Version: 8.0.0-beta.3

Please tell us about your environment: OSX 10.13.5

Current behavior: I give configFile as options like:

...
options: {
  configFile: '../../babel.config.js',
},
...

And this will not get any plugins or presets with babel.config.js.

Expected/desired behavior:

  • If the current behavior is a bug, please provide the steps to reproduce and if possible a minimal demo of the problem along with a gist/jsbin of your webpack configuration. Just need to add babel.config.js to options.configFile.

  • What is the expected behavior? This should work with babel.config.js.

  • What is the motivation / use case for changing the behavior? I use babel.config.js in a mono repo. As a result, I want to babel.config.js can work, and I only need to write a config file to the root folder.

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:8 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
loganfsmythcommented, Jul 13, 2018

I’ve posted https://github.com/babel/babel/pull/8315 which should address this once it is merged and published.

1reaction
loganfsmythcommented, Jul 12, 2018

Perfect, thanks. I see just what the problem is now.

Read more comments on GitHub >

github_iconTop Results From Across the Web

babel/core
Resolve Babel's options fully, resulting in an options object where: opts.plugins is a full list of Plugin instances. opts.presets is empty and all...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found