Skip to content

Commit

Permalink
fix: commonjs imports in logger/index
Browse files Browse the repository at this point in the history
  • Loading branch information
kshutkin committed Dec 2, 2021
1 parent 101f055 commit 8f6af4e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions logger/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,9 @@ if (!appender()) {
]);
// @endif
/* @ifdef cjs
const { asciiPrefixes, colors, unicodePrefixes } = require('./default-formatting');
const { createConsoleAppender } = require('./console-appender');
const { createFormatter, terminalSupportsUnicode } = require('./format-utils');
const { asciiPrefixes, colors, unicodePrefixes } = require('./default-formatting.cjs');
const { createConsoleAppender } = require('./console-appender.cjs');
const { createFormatter, terminalSupportsUnicode } = require('./format-utils.cjs');
// @endif */
const formatter = createFormatter(colors, terminalSupportsUnicode() ? unicodePrefixes : asciiPrefixes);
appender(filterMessages((message: LogMessage) => (message.loglevel as number) > LogLevel.verbose, createConsoleAppender(formatter)));
Expand Down

0 comments on commit 8f6af4e

Please sign in to comment.