Skip to content

Support for babel.config.js #4947

@cangoektas

Description

@cangoektas

Looking at the new Babel docs it seems like since Babel 7 babel.config.js is the recommended way to configure Babel. It has the advantage that configuration can be created dynamically and it's especially useful for monorepos since it takes precedence over all other configs in the project.

There was an issue for this already in #4275 but as far as I can see Next.js doesn't support a babel.config.js. If it does, then this would be a bug report. If it doesn't, this is a feature request. 🙂

My current use case is to use Next on the root level of a monorepo, where I use a dynamically computed babel.config.js. Next doesn't pick it up as an external Babel config.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions