From 46db8f3c8cd8b106ade8d7e04a191ee388683d60 Mon Sep 17 00:00:00 2001 From: WaeCo Date: Thu, 23 May 2019 05:59:47 +0200 Subject: [PATCH] Expose LegacyTransportStream on index (#42) Expose LegacyTransportStream on index to allow bundlers to include the precompiled ES5 file. Please see winstonjs/winston#1578 --- index.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/index.js b/index.js index 79b6f1c..46531bd 100644 --- a/index.js +++ b/index.js @@ -209,3 +209,7 @@ TransportStream.prototype._nop = function _nop() { // eslint-disable-next-line no-undefined return void undefined; }; + + +// Expose legacy stream +module.exports.LegacyTransportStream = require('./legacy');