Skip to content

Commit

Permalink
Fix require for es module (#20)
Browse files Browse the repository at this point in the history
  • Loading branch information
egoist authored and yyx990803 committed Feb 13, 2018
1 parent 7c1d6e0 commit bcca0b2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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')
}
}
Expand Down

0 comments on commit bcca0b2

Please sign in to comment.