0.0.8 • Published 2 years ago

@nejcm/rollup-plugin-size-snapshot-vite v0.0.8

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

rollup-plugin-size-snapshot

This plugin provides details about

  • actual bundle size (bundler parsing size)
  • minified bundle size (browser parsing size)
  • gzipped bundle size (download size)

All of these sizes are important criteria when choosing a library, and they will be stored in the .size-snapshot.json file.

Usage

Inside vite.config:

import { sizeSnapshot } from '@nejcm/rollup-plugin-size-snapshot-vite';

export default defineConfig({
  build: {
    rollupOptions: {
      plugins: [sizeSnapshot()],
    },
  },
});

Note: If your config file is as .ts file than casting to any might be required. E.g.: sizeSnapshot() as any

License

MIT © Bogdan Chadkin