项目作者: yever

项目描述 :
Asynchronous module loading with webpack and typescript
高级语言: TypeScript
项目地址: git://github.com/yever/webpack-typescript-async.git
创建时间: 2017-03-01T21:40:04Z
项目社区:https://github.com/yever/webpack-typescript-async

开源协议:

下载


webpack-typescript-async

This repository is a proof of concept for using webpack with typescript with
System.import for asynchronous module loading.

System.import is better than require.ensure since it provides
a Promise and allows to handle exceptions. In order to use it with
typescript, I included the types for systemjs (@types/systemjs).

Systemjs is not actually used in the project. The typescript code is compiled
with "module": "commonjs", but System.import is recognized by webpack
and converted into bundles that are loaded asynchronously.

How to start?

  1. git clone https://github.com/yever/webpack-typescript-async.git
  2. cd webpack-typescript-async
  3. npm install
  4. npm start

You can also build it with

  1. npm run build