Tags: material-motion/material-motion-js
Tags
[upgraded] to [email protected] Summary: That version renames `browser` to `unpkg` in `package.json`, which will allow dependencies to be shared with other libraries during bundling. Test Plan: Reviewers: Subscribers:
[changed] `package.browser` to `package.unpkg` `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.
[fixed] demos server Pundle apparently doesn't resolve ES modules, so it's using CommonJS. Rollup needs ES modules, so they are what the main `tsconfig` generates.
[added] creation of material-motion.bundle.js to yarn run build
[_added] yarn run clean alias for lerna run clean
[changed] `package.browser` to `package.unpkg` Summary: `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. Reviewers: O2 Material Motion, #material_motion Tags: #material_motion Differential Revision: https://codereview.cc/D3509
[added] creation of material-motion.bundle.js to yarn run build Reviewers: O2 Material Motion, O3 Material JavaScript platform reviewers, #material_motion Tags: #material_motion Differential Revision: https://codereview.cc/D3506
[_added] yarn run clean alias for lerna run clean Reviewers: O2 Material Motion, #material_motion Tags: #material_motion Differential Revision: https://codereview.cc/D3505
PreviousNext