Skip to content
This repository has been archived by the owner on Apr 21, 2022. It is now read-only.

Conflicts with babel configs #62

Open
tunnckoCore opened this issue Jun 16, 2019 · 1 comment
Open

Conflicts with babel configs #62

tunnckoCore opened this issue Jun 16, 2019 · 1 comment

Comments

@tunnckoCore
Copy link

Hey there. Just realize that when you have Jest and need babel config, so the plugin-build-web output is CJS too.

Some ideas how to handle that? I bet it would be tricky, because in reality we may want and need our config so we can configure browsers and other stuff. So we can't just ignore the babel config existence for the build-web plugin.

Maybe per plugin config, or option like ignoreLocalBabelConfig or such. Which will ignore the existence of it, but will use the default builtin one inside the build-web plugin.

@tunnckoCore
Copy link
Author

tunnckoCore commented Jun 16, 2019

Hm. Actually, just seen that it has babelrc: false here... Sooo...

That's my pipeline

  "@pika/pack": {
    "pipeline": [
      [
        "@pika/plugin-standard-pkg",
        {
          "exclude": "**/__tests__/**"
        }
      ],
      [
        "@pika/plugin-build-node"
      ],
      [
        "@pika/plugin-build-web"
      ]
    ]
  },

And just have .babelrc.js because I needed for Jest.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant