The 'module' field is used by bundlers such as rollup and webpack to determine the entrypoint for a package. Conventionally 'module' is used for the ES6 entrypoint, and 'main' is used for the CommonJS entrypoint. Adding a 'module' field allows importing bowser as an ES6 module directly, rather than using a package-relative path to the ES6 entrypoint (e.g. `bowser/src/bowser`) Closes #353pull/354/head
parent
9791ffeaf6
commit
4356c0a503
Loading…
Reference in new issue