Debug: Does debug support es6?

Created on 27 Feb 2017  路  2Comments  路  Source: visionmedia/debug

hi,

I'm using debug in an application thats code happens to be in es6, im importing the module like so:

import Debug from 'debug';

then from there i'm doing the following:

const httpDebug = Debug('http'); const appDebug = Debug('app'); const errorDebug = Debug('error');

then exporting them like so:

export { httpDebug, appDebug, errorDebug }
and im also running set DEBUG=* & my_npm_command and it still wont work, any suggestions or will i have to prepose to change the code style?

Most helpful comment

@ronanhancock what did u do to fix it?

All 2 comments

Literally, just fixed it!

@ronanhancock what did u do to fix it?

Was this page helpful?
0 / 5 - 0 ratings

Related issues

dave-ops picture dave-ops  路  6Comments

pavanjadhaw picture pavanjadhaw  路  5Comments

fforres picture fforres  路  7Comments

LukeSheard picture LukeSheard  路  3Comments

kopax picture kopax  路  4Comments