babel-plugin-trace icon indicating copy to clipboard operation
babel-plugin-trace copied to clipboard

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

Open singhshashi opened this issue 8 years ago • 4 comments

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

singhshashi avatar May 16 '16 09:05 singhshashi

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

phpnode avatar May 16 '16 10:05 phpnode

Yes. That had no effect.

singhshashi avatar May 17 '16 08:05 singhshashi

@singhshashi please could you paste your .babelrc?

phpnode avatar May 17 '16 08:05 phpnode

.babelrc


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

singhshashi avatar May 17 '16 08:05 singhshashi