Skip to content
This repository has been archived by the owner on Jan 12, 2022. It is now read-only.

Commit

Permalink
moved polyfill to the top of the file
Browse files Browse the repository at this point in the history
  • Loading branch information
antouhou committed Oct 8, 2021
1 parent cec479a commit 5b9c9d2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/logger/index.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
const util = require('util');
const winston = require('winston');
// Default winston transport requires setImmediate to work, so
// polyfill included here. Making it work with webpack is rather tricky, so it is used as per
// documentation: https://github.com/YuzuJS/setImmediate#usage
require('setimmediate');
const util = require('util');
const winston = require('winston');

const LOG_LEVEL = process.env.LOG_LEVEL || 'info';

Expand Down

0 comments on commit 5b9c9d2

Please sign in to comment.