Skip to content

v1.0.5

Latest
Compare
Choose a tag to compare
@jpdriver jpdriver released this 08 Oct 15:30
· 1 commit to master since this release

Production Bundle Sizes

Format Size
CJS 6.39 KB (2.01 KB Gzipped)
UMD 5.56 KB (1.88 KB Gzipped)
ESM 5.78 KB (1.88 KB Gzipped)

Rollup changes

We no longer include a .mjs file in our compiled distribution. Following the pattern React uses, we now include CommonJS, UMD, and ES Module files in separate directories. All have a .js extension.

This means the dist folder structure that gets generated on build now uses the following pattern:

Previous
dist/kickoff-react-components.js
dist/kickoff-react-components.mjs
New
dist/cjs/kickoff-react-components
dist/esm/kickoff-react-components
dist/esm/kickoff-react-components

Additionally, the files will now alter their names based on whether they were built in Development or Production, and whether or not they are minified.

dist/cjs/kickoff-react-components.development.js
dist/cjs/kickoff-react-components.production.min.js

Other notable changes

  • swapped Standard for Prettier
  • added precommit to run Prettier when staging modified files
  • both Development and minified Production builds are included for each format
  • Gzips are included in Production builds
  • Filesizes are displayed when building