www/build-tasks/serve/plsload.js
// this wouldn't be great in production but this plsload is designed specifically for development.
this wouldn't be great in production but this plsload is designed specifically for development.
this wouldn ' t be great in production but this plsload is designed specifically for development .
function resolveNext() {
            var dependency = dependencies.shift();
            if (dependency == null) return handler();
            if (dependency === 'exports') return resolved.push(exports) && resolveNext();
            var src = resolvePath(getDirectory(currentPath), dependency);
            if (src.slice(-3) !== '.js') src = src + '.js';
            var ready = awaiters[src] = function(exports) {
                resolved.push(exports);
                resolveNext();
            };
            if (src in warehouse) return ready(warehouse[src])
            load(src, function() {
                if (warehouse[src] == null) return ready(warehouse[src] = null);
            });
        }
function resolveNext ( ) { var dependency = dependencies . shift ( ) ; if ( dependency == null ) return handler ( ) ; if ( dependency === 'exports' ) return resolved . push ( exports ) && resolveNext ( ) ; var src = resolvePath ( getDirectory ( currentPath ) , dependency ) ; if ( src . slice ( - 3 ) !== '.js' ) src = src + '.js' ; var ready = awaiters [ src ] = function ( exports ) { resolved . push ( exports ) ; resolveNext ( ) ; } ; if ( src in warehouse ) return ready ( warehouse [ src ] ) load ( src , function ( ) { if ( warehouse [ src ] == null ) return ready ( warehouse [ src ] = null ) ; } ) ; }
this wouldn't be great in production but this plsload is designed specifically for development.
this wouldn ' t be great in production but this plsload is designed specifically for development .
// ensure the path ends with .js // if the src has already loaded we can ready immediately // if this wasn't a plsload script then complete it now