angular-ui / ui-router

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

chore(package): adding pkg.browser #3837

Open dbrab opened 3 years ago

dbrab commented 3 years ago

package.json browser is recommended used for client side scripts . https://docs.npmjs.com/cli/v7/configuring-npm/package-json#browser

Some module bundles like webpack use browser> module> main to resolve the modules according to the target , not having a browser field in the package.json, it always solves the pkg.module, this is a problem when you want to load browser modules that have things like windows and / or no imports (they are not supported in iifes)

stale[bot] commented 2 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs.

This does not mean that the issue is invalid. Valid issues may be reopened.

Thank you for your contributions.