angular-ui / ui-router

The de-facto solution to flexible routing with nested views in AngularJS
http://ui-router.github.io/
MIT License
13.56k stars 3.01k forks source link

Add 'module' entry to allow Webpack to tree shake it #3721

Closed felixmosh closed 5 years ago

felixmosh commented 5 years ago

Bundlers such as Webpack are not support jsnext:main entry, but do support module.

I've just added that entry, I've checked on my build, and webpack was able to enable module concat optimisation and tree shaking.

felixmosh commented 5 years ago

@elboman can u approve that as well?

felixmosh commented 5 years ago

@christopherthielen can you review that PR as well?

felixmosh commented 5 years ago

@christopherthielen, ping