Skip to content
This repository has been archived by the owner on May 11, 2018. It is now read-only.

Debug output omitted with 2 .babelrc files #147

Closed
noinkling opened this issue Jan 20, 2017 · 3 comments
Closed

Debug output omitted with 2 .babelrc files #147

noinkling opened this issue Jan 20, 2017 · 3 comments
Labels

Comments

@noinkling
Copy link

noinkling commented Jan 20, 2017

I have a Node web app where both the server and frontend use Babel. The frontend is served using webpack-dev-middleware in development, so I can just launch the app in one command with babel-node.

Root level .babelrc for server:

{
  "presets": [
    ["env", {
      "debug": true,
      "targets": {
        "node": "current"
      }
    }]
  ]
}

Subdirectory .babelrc for frontend:

{
  "presets": [
    ["env", {
      "debug": true,
      "modules": false
      // no "targets" for now, just defaulting to "latest" preset
    }],
    "react"
  ],
  "env": {
    "development": {
      "plugins": ["react-hot-loader/babel"]
    }
  }
}

When the debug option is set to true in both files, only the output for the server (Node) one is shown - I would expect both to be shown. If I remove that option from the Node .babelrc, the frontend debug output then shows up fine with all the stuff from babel-preset-latest as I expect.

It's important to note that the bug doesn't affect actual functionality and the setup works great otherwise.

Edit: I expect it has something to do with the hasBeenLogged flag variable.

@frenzzy
Copy link

frenzzy commented Feb 6, 2017

Also debug output omitted with cacheDirectory: true option in babel-loader

@stale stale bot added the i: stale label Jun 13, 2017
@stale
Copy link

stale bot commented Jun 13, 2017

This issue has been automatically marked as stale because it has not had recent activity 😴. It will be closed if no further activity occurs. Thank you for your contributions 👌!

@babel-bot
Copy link

This issue has been moved to babel/babel#6634.

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

No branches or pull requests

3 participants