From d2e8cd6b65cb8ea35ba49636e12cc1b53bfe8be6 Mon Sep 17 00:00:00 2001 From: yann300 Date: Fri, 3 May 2019 14:29:00 +0200 Subject: [PATCH] usage of resolver: remove the prefix --- src/app/compiler/compiler-imports.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/app/compiler/compiler-imports.js b/src/app/compiler/compiler-imports.js index c217d32829..bd2c4fd47b 100644 --- a/src/app/compiler/compiler-imports.js +++ b/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 => {