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.

Make @babel/core loadPartialConfig() resolve babelrc and config

See original GitHub issue

Best I can tell, currently loadPartialConfig() in @babel/core does not resolve any .babelrc / babel.config.js files, unless a stub filename is also set. It’d be great if it tried to resolve those configuration files given the cwd.

Issue Analytics

  • State:open
  • Created 5 years ago
  • Reactions:2
  • Comments:8 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
ahnpnlcommented, Jan 12, 2020

hi, I have a question might be related to this. At the moment, I’m playing with a monorepo. The monorepo has a structure like this:

+-- babel.config.js
+-- packages
|   +-- ui
|   |   +-- .babelrc

my root babel.config.js has babelrcRoots: [ '.', './packages/*' ],. Now I want to write a piece of codes that first load config from root babel.config.js then look for .babelrc in the project and append to the final result config.

Does babel have any public APIs to achieve this ?

0reactions
kopaxcommented, Jan 31, 2019

Hi, we have just opened this since we are facing errors after upgrading babel-jest to 24.0.0 : https://stackoverflow.com/questions/54457024/how-does-setupfilesafterenv-work-how-to-upgrade-setuptestframeworkscriptfile-in

@novemberborn may I know how to specify the babel jest config file name ? We do use babel.config.js

Read more comments on GitHub >

github_iconTop Results From Across the Web

babel/core
To allow systems to easily manipulate and validate a user's config, this function resolves the plugins and presets and proceeds no further. The...
Read more >
Commits · Hao-Hsiang Song / topics-auction - Gitlab
This diff is collapsed. Click to expand it. node_modules/@babel/core/lib/config/config-descriptors.js 0 → 100644.
Read more >
webpack module build fails when attempting to upgrade from ...
I am trying to upgrade our project from Babel 6 to 7. I've made the following changes to package.json: "devDependencies": { "babel-core" ...
Read more >
b63d35b86d0baef6c0facfebff8f4...
stomAction/node_modules/@babel/core/lib/config/caching.js +324 -0 ... _path().default.resolve(babelrcRootsDirectory, pat) : pat;. });.
Read more >
Renovate Bot Package Diff
import { TransformOptions } from '@babel/core';. 8. - import type { Transformer } from '@jest/transform';. 9. - interface BabelJestTransformer extends ...
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