usage of resolver: remove the <provider> prefix

pull/3094/head
yann300 6 years ago
parent e05914ab16
commit 00200c6086
  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