Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Using start-env to set env to "test" and using babel's "env" option doesn't work well #1

Open
laggingreflex opened this issue Feb 12, 2017 · 0 comments

Comments

@laggingreflex
Copy link
Owner

I have a task like this:

const test = () => start(
    env('NODE_ENV', 'test')
    mochista(...)
)

and .babelrc like this:

  "env": {
    "test": {
      "plugins": [
        "istanbul",

It turns out the plugin "istanbul" isn't actually used.

Probably because I'm also using start-babel-cli which already loads babel-register before the test task has had the chance to set NODE_ENV which babel uses to load the plugin.

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

No branches or pull requests

1 participant