From 00200c60868b59f3e889c29a7d21696c90ee3d64 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 => {