chore: make the moduleid loader working on safari (#3532)

This commit is contained in:
Jesús Rodríguez 2017-04-12 21:03:52 +02:00 committed by Ward Bell
parent faf3ca6837
commit 8f1acc5b43
1 changed files with 1 additions and 1 deletions

View File

@ -23,7 +23,7 @@ module.exports.translate = function(load){
load.source = load.source
.replace(templateUrlRegex, function(match, quote, url){
let resolvedUrl = url;
var resolvedUrl = url;
if (url.startsWith('.')) {
resolvedUrl = basePath + url.substr(1);