Skip to content

Commit

Permalink
Fixed: prevent JSPM to throw unrecoverable error (#205)
Browse files Browse the repository at this point in the history
Closes #198 

Works around jspm/jspm-cli#1779 stuntil that is fixed
  • Loading branch information
swernerx authored and MoOx committed May 7, 2016
1 parent 4a9c2d6 commit 4b5c8ec
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion lib/resolve-id.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
var resolve = require("resolve")
var jspmResolve = require("pkg-resolve")
var jspmResolve
try {
jspmResolve = require("pkg-resolve")
}
catch (ex) {
// pass
}

var moduleDirectories = [
"web_modules",
Expand Down

0 comments on commit 4b5c8ec

Please sign in to comment.