Skip to content

lulu-berlin/webpack-typescript-async

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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?

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

You can also build it with

npm run build

About

Asynchronous module loading with webpack and typescript

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published