<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/posts/unlocking-the-power-of-javascript-reduce-your-npm-package-size-by-99--x8dd34f8r" -->

---
title: Unlocking the Power of JavaScript: Reduce Your NPM...
description: JS Performance Optimization with Vite and Rollupjs. We improved Lighthouse metrics from 38% to 82% and reduced FCP (First Contentful Paint) time from 5.7...
canonical: https://daily.dev/posts/unlocking-the-power-of-javascript-reduce-your-npm-package-size-by-99--x8dd34f8r
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:type: website
og:site_name: daily.dev
og:title: Unlocking the Power of JavaScript: Reduce Your NPM Package Size by 99% | daily.dev
og:description: JS Performance Optimization with Vite and Rollupjs. We improved Lighthouse metrics from 38% to 82% and reduced FCP (First Contentful Paint) time from 5.7...
og:url: https://daily.dev/posts/unlocking-the-power-of-javascript-reduce-your-npm-package-size-by-99--x8dd34f8r
og:image: https://api.daily.dev/og/posts/X8dD34f8r.png
og:image:alt: Unlocking the Power of JavaScript: Reduce Your NPM Package Size by 99%
og:image:width: 1200
og:image:height: 630
og:locale: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Unlocking the Power of JavaScript: Reduce Your NPM Package Size by 99%

**[Medium](https://daily.dev/sources/medium_js)** · 3 min read · 0 upvotes · 0 comments

## Summary

JS Performance Optimization with Vite and Rollupjs. We improved Lighthouse metrics from 38% to 82% and reduced FCP (First Contentful Paint) time from 5.7 seconds to around 1.0~1. 7 seconds in projects where we use the Design System package. Vite can start the development server quickly, allowing you to see changes instantly.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://medium.com/insiderengineering/javascript-performance-optimization-with-vite-rollupjs-587d2cbf1979?source=rss------javascript-5>

---

Tags: [#javascript](https://daily.dev/tags/javascript), [#performance](https://daily.dev/tags/performance), [#frontend](https://daily.dev/tags/frontend), [#webpack](https://daily.dev/tags/webpack), [#vite](https://daily.dev/tags/vite), [#lighthouse](https://daily.dev/tags/lighthouse)

[View this post on daily.dev](https://daily.dev/posts/unlocking-the-power-of-javascript-reduce-your-npm-package-size-by-99--x8dd34f8r)

```json
{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://daily.dev/#organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180},"sameAs":["https://twitter.com/dailydotdev","https://github.com/dailydotdev","https://www.linkedin.com/company/daily-dev-ltd"]},{"@type":"WebSite","@id":"https://daily.dev/#website","url":"https://daily.dev","name":"daily.dev","publisher":{"@id":"https://daily.dev/#organization"},"potentialAction":{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https://daily.dev/search?q={search_term_string}"},"query-input":"required name=search_term_string"}}]}
{"@context":"https://schema.org","@type":"TechArticle","headline":"Unlocking the Power of JavaScript: Reduce Your NPM Package Size by 99%","url":"https://daily.dev/posts/unlocking-the-power-of-javascript-reduce-your-npm-package-size-by-99--x8dd34f8r","mainEntityOfPage":{"@type":"WebPage","@id":"https://daily.dev/posts/unlocking-the-power-of-javascript-reduce-your-npm-package-size-by-99--x8dd34f8r"},"datePublished":"2023-09-25T21:17:49.276Z","dateModified":"2023-09-25T07:17:25.641Z","description":"JS Performance Optimization with Vite and Rollupjs. We improved Lighthouse metrics from 38% to 82% and reduced FCP (First Contentful Paint) time from 5.7...","image":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/5f4f60cff526283054725627e7d3c1c1?_a=AQAEufR","thumbnailUrl":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/5f4f60cff526283054725627e7d3c1c1?_a=AQAEufR","isAccessibleForFree":true,"articleSection":"Medium","inLanguage":"en","publisher":{"@type":"Organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180}},"author":{"@type":"Organization","name":"Medium","logo":"https://media.daily.dev/image/upload/t_logo,f_auto/v1/logos/medium","url":"https://daily.dev/sources/medium_js"},"commentCount":0,"discussionUrl":"https://daily.dev/posts/unlocking-the-power-of-javascript-reduce-your-npm-package-size-by-99--x8dd34f8r","interactionStatistic":[{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":0},{"@type":"InteractionCounter","interactionType":{"@type":"CommentAction"},"userInteractionCount":0}],"keywords":"javascript,performance,frontend,webpack,vite,lighthouse","timeRequired":"PT3M"}
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://daily.dev"},{"@type":"ListItem","position":2,"name":"Medium","item":"https://daily.dev/sources/medium_js"},{"@type":"ListItem","position":3,"name":"Unlocking the Power of JavaScript: Reduce Your NPM Package Size by 99%"}]}
```

