Skip to content
This repository has been archived by the owner on Oct 9, 2020. It is now read-only.

Commit

Permalink
fixed for npm-scope package
Browse files Browse the repository at this point in the history
  • Loading branch information
jumperchen committed Jun 7, 2016
1 parent 10179fd commit 6e8953f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/compile.js
Expand Up @@ -43,7 +43,7 @@ function getCompileHash(load, compileOpts) {

function getEncoding(canonical, encodings) {
// dont encode system modules
if (canonical[0] == '@' && canonical != '@dummy-entry-point')
if (canonical[0] == '@' && (canonical != '@dummy-entry-point' && canonical.indexOf('/') == 0))
return canonical;

// return existing encoding if present
Expand Down

0 comments on commit 6e8953f

Please sign in to comment.