Skip to content

Commit 3ccf294

Browse files
committed
Do not try loading modules mapped to "empty:"
1 parent 80ce71a commit 3ccf294

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

es6.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ define([
1010
//>>excludeEnd('excludeBabel')
1111
) {
1212
//>>excludeStart('excludeBabel', pragmas.excludeBabel)
13-
var fetchText, _buildMap = {};
13+
var fetchText, _buildMap = {};
1414

1515
if (typeof window !== 'undefined' && window.navigator && window.document) {
1616
fetchText = function (url, callback) {
@@ -69,6 +69,10 @@ return {
6969
var sourceFileName = name + fileExtension;
7070
var url = req.toUrl(sourceFileName);
7171

72+
if (url.indexOf('empty:') === 0) {
73+
return onload();
74+
}
75+
7276
var options = {};
7377
for (var key in defaultOptions) {
7478
options[key] = defaultOptions[key];

0 commit comments

Comments
 (0)