odysseyscience / react-router-proxy-loader

Dynamically load react-router components on-demand, based on react-proxy-loader
145 stars 12 forks source link

fix error behavior about require component. #15

Closed anjianshi closed 8 years ago

anjianshi commented 8 years ago

It seems the require() call must put in require.ensure() directly, otherwise webpack's code split feature won't work.

I'm sorry for the mistake I made before!

seanadkinson commented 8 years ago

Oops, will merge and release!

seanadkinson commented 8 years ago

Published 0.4.2 to npm. Thanks