webpack/webpack-cli

View on GitHub
packages/generators/loader-template/default/examples/simple/src/index.js.tpl

Summary

Maintainability
Test Coverage
import esmModule from './static-esm-module';

const getLazyModule = () => System.import('./lazy-module');

setTimeout(() => {
  getLazyModule.then((modDefault) => {
    console.log(modDefault);
  });
}, 300);

console.log(esmModule);