Skip to content

[configuration] using babel overrides throws error #427

Description

@chrisgervang

https://github.com/uber-web/ocular/blame/69b7e75378ef249c3e723dc605dc6f7399439bd4/modules/dev-tools/src/configuration/get-babel-config.cjs#L111

I don't think this is functioning as intended. When I use overrides I get an Error: babel.config.js: Configuration should be an exported JavaScript object.

Shouldn't it be something like this?

if (options.overrides) {
  config = deepMerge(config, {overrides: options.overrides});
}

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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