[go: nahoru, domu]

Skip to content

Exploring async/await using TypeScript targeting ES6 and bundled using Webpack

License

Notifications You must be signed in to change notification settings

rob3c/poc-webpack-typescript-async-await

Repository files navigation

This project explores async/await with TypeScript targeting ES6 and bundled using Webpack.

I used Node v4.4.0 in order for for...of to work when iterating the array in the demo, but Node v0.12 can be used with the --harmony flag for just the basic async/await functionality (TS targeting ES6 uses generators to polyfill them).

Unfortunately, we still need Babel to transpile the ES6 code TypeScript creates, because Webpack still expects commonjs modules. I tried to create the minimal configuration to support this. Maybe I'll update it to use the Webpack 2 beta someday :-)

About

Exploring async/await using TypeScript targeting ES6 and bundled using Webpack

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published