usage of resolver: remove the <provider> prefix

pull/1/head
yann300 6 years ago
parent 383fbab0b9
commit d2e8cd6b65
  1. 3
      src/app/compiler/compiler-imports.js

@ -131,6 +131,9 @@ module.exports = class CompilerImports {
return resolver.require(url)
})
.then(result => {
if (url.indexOf(result.provider + ':') === 0) {
url = url.substring(result.provider.length + 1) // remove the github prefix
}
cb(null, result.source, url, result.provider, result.url)
})
.catch(err => {

Loading…
Cancel
Save