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

Trace Level Options does not seem to work when using babel-node #1

Open
singhshashi opened this issue May 16, 2016 · 4 comments
Open

Comments

@singhshashi
Copy link

singhshashi commented May 16, 2016

Hi,

I was checking out this plugin to use in my projects. I wanted to enable only warn level logging. However that does not seem to work when using babel-node.

The commands that I used were as follows:

TRACE_LEVEL=warn babel-node index.js // this did not work

TRACE_LEVEL=warn babel -d ./babel-out index.js

node ./babel-out/index.js // this does work

@phpnode
Copy link
Member

phpnode commented May 16, 2016

did you try editing index.js between runs? It could be related to babel's cache.

@singhshashi
Copy link
Author

Yes. That had no effect.

@phpnode
Copy link
Member

phpnode commented May 17, 2016

@singhshashi please could you paste your .babelrc?

@singhshashi
Copy link
Author

.babelrc


{
  "presets":["stage-3","es2015"],
  "plugins":[["trace",{"strip": true}]]
}

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

2 participants