From bcca0b29b9d756ba92ac180e00fb09de52584c5b Mon Sep 17 00:00:00 2001 From: EGOIST <0x142857@gmail.com> Date: Wed, 14 Feb 2018 02:23:54 +0800 Subject: [PATCH] Fix require for es module (#20) --- index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.js b/index.js index 0bcb0f55..5fdb08b7 100644 --- a/index.js +++ b/index.js @@ -87,7 +87,7 @@ module.exports.pitch = function (remainingRequest) { } else { // normal import return shared.concat([ - 'require(' + addStylesServerPath + ')(' + id + ', content, ' + isProduction + ')' + 'require(' + addStylesServerPath + ').default(' + id + ', content, ' + isProduction + ')' ]).join('\n') } }