mgechev / angular2-hot-loader

[NOT MAINTAINED] Angular 2 hot loader
https://www.youtube.com/watch?v=S9pKbi3WrCM
114 stars 8 forks source link

Compatible with webpack and browserify hmr #18

Closed tamascsaba closed 8 years ago

tamascsaba commented 8 years ago

angular2-hot-loader only compatible with systemjs, but most developer use browserify or webpack.

Like: https://github.com/gaearon/react-transform-hmr which a React Transform that enables hot reloading React classes using Hot Module Replacement API. Hot module replacement is supported natively by Webpack and available in Browserify with browserify-hmr.

Webpack API

mgechev commented 8 years ago

@tamascsaba at first I'll create a component proxy which will be reusable across module loaders.

My main goals are to preserve instantiated dependencies as well as component's state. Initially the reloader will support only SystemJS, later I will add support for webpack through a configuration option.

tamascsaba commented 8 years ago

@mgechev it sounds good, :+1: thx