Skip to content

Commit

Permalink
[changed] package.browser to package.unpkg
Browse files Browse the repository at this point in the history
`browser` refers to which APIs a library uses.  The `module` build already uses browser-safe APIs, except for `import` statements.  Any tool that cares about the `browser` field will be able to resolve `import` statements.

CDNs like `unpkg` will serve the JS file directly.  This change ensures they still have a bundled version to serve, without potentially duplicating dependencies when we're bundled downstream.
  • Loading branch information
appsforartists committed Dec 13, 2018
1 parent 4140b20 commit f601df7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@
"build": "yarn run clean; tsc; rollup --config rollup.config.js",
"prepublish": "yarn run build"
},
"browser": "dist/indefinite-observable.bundle.js",
"module": "dist/index.js",
"types": "dist/index.d.ts",
"unpkg": "dist/indefinite-observable.bundle.js",
"typescript:main": "src/index.ts",
"dependencies": {
"symbol-observable": "1.2.0"
Expand Down

0 comments on commit f601df7

Please sign in to comment.