ESM - Rollup - Speed
See original GitHub issueWhen running the ESM Rollup example, the speed of the build is slow. For me on my laptop (which I think is an “average” developer laptop - see system info below):
- the initial start time for
npm run watch
is ~32 seconds - subsequent builds when a file is changed takes ~14 seconds
Ideally the second number - the time it takes to build on file change, would be pretty quick (less than a few seconds) to allow for a good development workflow. Is there any way to speed this up? How fast does this run for others? Thanks!
Environment
- npm v6.14.14
- node v14.17.1
- OS: Windows 10 v1909
- Processor: Intel core i7-8850H @ 2.60 GHz
- Memory: 16 GB
Issue Analytics
- State:
- Created 2 years ago
- Comments:7 (6 by maintainers)
Top Results From Across the Web
rollup.js
Rollup is a module bundler for JavaScript which compiles small pieces of code into something larger and more complex, such as a library...
Read more >Slow performance on import a huge ESM script #2536 - GitHub
The best way to avoid unnecessary parsing would be to import the module directly, as in the "fast" method above. All reactions.
Read more >How to Bundle JavaScript With Rollup — Step-by-Step Tutorial
Rollup is a next-generation JavaScript module bundler. Author your app or library using ES2015 modules, then efficiently bundle them up into a single...
Read more >Why I use Rollup, and not Webpack | by Paul Sweeney | Medium
Because ESM is syntax, it's very easy to statically analyze. The two import statements at the top can be parsed into an Abstract...
Read more >The Ultimate Guide to Getting Started with the Rollup.js ...
Rollup.js primarily concentrates on JavaScript so it's fast and lightweight. It's easy to get started but you'll discover plugins for HTML, CSS, ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
vite 4 life
Thanks all! I’ll close this as resolved: