Skip to content

Commit e534a28

Browse files
clarkdopi0
authored andcommittedJan 6, 2019
fix: ignore winston dep in webpack (#37)
1 parent deee35e commit e534a28

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed
 

‎src/reporters/winston.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
// This reporter is compatible with Winston 3
22
// https://github.com/winstonjs/winston
33

4-
const _require = require // bypass webpack
4+
// eslint-disable-next-line
5+
const _require = typeof __non_webpack_require__ !== 'undefined' ? __non_webpack_require__ : require // bypass webpack
56

67
export default class WinstonReporter {
78
constructor (logger) {

0 commit comments

Comments
 (0)
Please sign in to comment.