mirror of
https://github.com/systemjs/systemjs.git
synced 2026-01-25 14:57:38 +00:00
throw on synchronous conditional loading
This commit is contained in:
parent
a08be67cdc
commit
028293d5d8
@ -194,6 +194,9 @@
|
||||
function doMapSync(loader, pkg, pkgName, mapMatch, path, skipExtensions) {
|
||||
var mapped = pkg.map[mapMatch];
|
||||
|
||||
if (typeof mapped == 'object')
|
||||
throw new Error('Synchronous conditional normalization not supported sync normalizing ' + mapMatch + ' in ' + pkgName);
|
||||
|
||||
validateMapping(mapMatch, mapped, pkgName);
|
||||
|
||||
// ignore conditionals in sync
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user