Skip to content

reconsider the current logic related to babel.config.js #109

Closed
@justinhelmer

Description

@justinhelmer

The change from this commit 0283ef9 introduced the concept of babel.config.js. However, the current logic assumes the file exports a configuration object.

The Babel Configuration Docs are now promoting the use of babel.config.js for project-wide configuration - but the format of the file is to export a function.

I submitted another PR (#111) to help provide support for this new config file type (currently blocked by #108), and it should not conflict with the current logic. However, there may be unintended consequences of the current implementation if projects use the configFile or root options to load their project-wide configuration. In this scenario, babel will be assuming that babel.config.js exports a function, which could be seen as inconsistent with the current logic.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions