Skip to content

Commit bcca0b2

Browse files
egoistyyx990803
authored andcommitted
Fix require for es module (#20)
1 parent 7c1d6e0 commit bcca0b2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ module.exports.pitch = function (remainingRequest) {
8787
} else {
8888
// normal import
8989
return shared.concat([
90-
'require(' + addStylesServerPath + ')(' + id + ', content, ' + isProduction + ')'
90+
'require(' + addStylesServerPath + ').default(' + id + ', content, ' + isProduction + ')'
9191
]).join('\n')
9292
}
9393
}

0 commit comments

Comments
 (0)