How to use the systemjs/dist/system.js.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 grafana / grafana / public / app / features / plugins / plugin_loader.ts View on Github external
export function importPluginModule(path: string): Promise<PluginExports> {
  const builtIn = builtInPlugins[path];
  if (builtIn) {
    return Promise.resolve(builtIn);
  }
  return System.import(path);
}
github grafana / grafana / public / app / features / plugins / plugin_loader.ts View on Github external
export function loadPluginCss(options) {
  if (config.bootData.user.lightTheme) {
    System.import(options.light + '!css');
  } else {
    System.import(options.dark + '!css');
  }
}
github kumaravel29 / grafana-sankey-panel / dist / plugin_loader.ts View on Github external
export function importPluginModule(path: string): Promise<any> {
  let builtIn = builtInPlugins[path];
  if (builtIn) {
    return Promise.resolve(builtIn);
  }
  return System.import(path);
}
github kumaravel29 / grafana-sankey-panel / dist / plugin_loader.ts View on Github external
export function loadPluginCss(options) {
  if (config.bootData.user.lightTheme) {
    System.import(options.light + '!css');
  } else {
    System.import(options.dark + '!css');
  }
}