How to use the systemjs.System.import function in systemjs

To help you get started, we’ve selected a few systemjs examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github keycloak / keycloak / themes / src / main / resources / theme / keycloak-preview / account / resources / Main.tsx View on Github external
return new Promise ((resolve, reject) => {
        System.import(resourceUrl + modulePage.modulePath).then( (module: React.Component) => {
            modulePage.module = module;
            resolve(modulePage);
        }).catch((error: Error) => {
            console.warn('Unable to load ' + modulePage.label + ' because ' + error.message);
            reject(modulePage);
        });
    });
};