Make @babel/core loadPartialConfig() resolve babelrc and config
See original GitHub issueBest 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:
- Created 5 years ago
- Reactions:2
- Comments:8 (5 by maintainers)
Top 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 >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
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:
my root
babel.config.js
hasbabelrcRoots: [ '.', './packages/*' ],
. Now I want to write a piece of codes that first load config from rootbabel.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 ?
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