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 if we're bundled downstream.
  • Loading branch information
appsforartists committed Dec 13, 2018
1 parent dc52c0f commit b2df433
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/core/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
"version": "0.1.0",
"description": "Makes it easy to add rich, interactive motion to your application.",
"module": "dist/index.js",
"browser": "dist/material-motion.bundle.js",
"types": "dist/index.d.ts",
"unpkg": "dist/material-motion.bundle.js",
"typescript:main": "src/index.ts",
"scripts": {
"lint": "../../node_modules/.bin/tslint -c ../../tslint.json --project tsconfig.json --type-check",
Expand Down

0 comments on commit b2df433

Please sign in to comment.