1
0
mirror of https://github.com/lancedikson/bowser synced 2024-10-27 20:34:22 +00:00

Add 'module' field to manifest

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 #353
This commit is contained in:
Mark Stacey 2019-09-05 18:17:01 -03:00
parent 9791ffeaf6
commit 4356c0a503

View File

@ -21,6 +21,7 @@
} }
], ],
"main": "es5.js", "main": "es5.js",
"module": "src/bowser.js",
"types": "index.d.ts", "types": "index.d.ts",
"repository": { "repository": {
"type": "git", "type": "git",