From 6ecae72e83280e5afd5ecb60f8b717349fa08d3c Mon Sep 17 00:00:00 2001 From: ExE Boss <3889017+ExE-Boss@users.noreply.github.com> Date: Sat, 27 Apr 2019 09:30:00 +0200 Subject: [PATCH] =?UTF-8?q?fix:=20Add=C2=A0Babel=20compatible=20`=5F=5FesM?= =?UTF-8?q?odule`=C2=A0export?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- index.js | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/index.js b/index.js index 7d00571..51cc3b2 100644 --- a/index.js +++ b/index.js @@ -197,6 +197,9 @@ const chalkTag = (chalk, ...strings) => { Object.defineProperties(Chalk.prototype, styles); -module.exports = Chalk(); // eslint-disable-line new-cap -module.exports.supportsColor = stdoutColor; -module.exports.default = module.exports; // For TypeScript +exports = module.exports = Chalk(); // eslint-disable-line new-cap, no-multi-assign +exports.supportsColor = stdoutColor; + +// For TypeScript and Babel: +exports.default = module.exports; +Object.defineProperty(exports, '__esModule', {value: true});