Closed michaldudak closed 1 week ago
https://deploy-preview-41999--material-ui.netlify.app/
No bundle size changes (Toolpad) No bundle size changes
Generated by :no_entry_sign: dangerJS against ca1c9ed60f093da78e41ded73be3fe8b2a197a83
I think it should be possible to leverage @babel/core
API loadPartialConfig
to detect the config file location that applies to a file automatically. It's not super well documented, but it seems like the following returns a config location
// config property should contain the path to the project babel.config.js file that applies to `pathToCodeFile`
const { config } = babelCore.loadPartialConfig({ fileName: pathToCodeFile })
Thanks! I didn't realize Babel would look for the config automatically. Looks like it works well in both Core and Base UI repos.
The Babel configuration path in the API docs builder was hardcoded, causing problems when the package was used in other repositories. Added the relevant configuration field (defaulting to the previous value).