惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

Martin Fowler
Martin Fowler
L
LINUX DO - 最新话题
P
Proofpoint News Feed
Cyberwarzone
Cyberwarzone
Know Your Adversary
Know Your Adversary
cs.CL updates on arXiv.org
cs.CL updates on arXiv.org
L
Lohrmann on Cybersecurity
D
Darknet – Hacking Tools, Hacker News & Cyber Security
Security Latest
Security Latest
T
The Exploit Database - CXSecurity.com
Exploit-DB.com RSS Feed
Exploit-DB.com RSS Feed
P
Privacy & Cybersecurity Law Blog
K
Kaspersky official blog
The Last Watchdog
The Last Watchdog
Webroot Blog
Webroot Blog
Scott Helme
Scott Helme
T
Threat Research - Cisco Blogs
C
Cyber Attacks, Cyber Crime and Cyber Security
WordPress大学
WordPress大学
L
LINUX DO - 热门话题
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
博客园 - Franky
V
Visual Studio Blog
O
OpenAI News
AI
AI
Hacker News: Ask HN
Hacker News: Ask HN
V2EX - 技术
V2EX - 技术
GbyAI
GbyAI
Recent Commits to openclaw:main
Recent Commits to openclaw:main
Simon Willison's Weblog
Simon Willison's Weblog
S
Schneier on Security
Spread Privacy
Spread Privacy
Y
Y Combinator Blog
I
InfoQ
H
Hackread – Cybersecurity News, Data Breaches, AI and More
T
Threatpost
C
Cybersecurity and Infrastructure Security Agency CISA
F
Fortinet All Blogs
C
CERT Recently Published Vulnerability Notes
T
The Blog of Author Tim Ferriss
C
Check Point Blog
Apple Machine Learning Research
Apple Machine Learning Research
有赞技术团队
有赞技术团队
人人都是产品经理
人人都是产品经理
N
News and Events Feed by Topic
Project Zero
Project Zero
小众软件
小众软件
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
B
Blog
G
Google Developers Blog

StackBlitz Blog

Cloudflare is now backing pkg.pr.new’s data infrastructure! Bolt 100K Open Source Fund ViteConf 2024 was a blast Unbundling the JavaScript ecosystem StackBlitz is joining the Open Source Pledge Announcing TutorialKit: Interactive tutorials in the browser Get ready for ViteConf 2024 Announcing pkg.pr.new StackBlitz welcomes Ari Perkkiö, core team member of Vitest Catch us at Figma Config WebContainers and the future of web dev (interview with Jòan Varvenne) Open Source at StackBlitz Avoiding CORS issues with this one simple trick How to document design system components What is Vite (and why is it so popular)? Improving the developer experience of enterprise design systems Flow state: Why fragmented thinking is worse than any interruption What is Storybook? An Overview for Developers The Self-Rendering Eval Shirt Starters Upgrade: WebContainers and Vite Putting the Dev in Figma’s Dev Mode Announcing StackBlitz Self-hosted Building Together in Illinois 5 lessons design systems teams can learn from open-source maintainers Announcing Native Language Support in WebContainers Introducing StackBlitz Teams ViteConf is back! Bringing Sharp to WebAssembly and WebContainers The Atomic Waltz: Unraveling WebAssembly Issues in V8 and SpiderMonkey WebContainers now run on Safari, iOS, and iPadOS Now I am become the Destroyer of Threads WebContainer API is here. StackBlitz September 2022 Update StackBlitz August 2022 Update StackBlitz July 2022 Update Introducing: Collections and Social Previews! Down the caching-hole: adventures in Announcing ViteConf StackBlitz June 2022 Update The Fox and the Bolt: Bringing WebContainers to Firefox WebContainers are now supported in Firefox on desktop and Android StackBlitz May 2022 Update StackBlitz April 2022 Update Cloudflare and StackBlitz partner to bring Cloudflare Workers to your browser Powering over 2M developers a month, StackBlitz has raised $7.9M StackBlitz March 2022 Update Announcement: WebContainers are out of beta in Chromium StackBlitz has joined the Bytecode Alliance StackBlitz February 2022 Update Bringing WebContainers to all Browsers: a call to action for COEP Credentialless Cross-Browser support with Cross-Origin isolation StackBlitz welcomes Patak, core maintainer of Vite Chasing Memory Bugs through V8 and WebAssembly Remix v1 has landed, and it runs on WebContainers SvelteKit is now fully supported in WebContainers We Shopify partners with StackBlitz to bring Hydrogen development in-browser StackBlitz September 2021 Update Introducing Vite.new Templates! Announcing WebContainers Astro support! 🛰 Introducing: SQLite3 support in WebContainers! 🧪 StackBlitz July 2021 Update StackBlitz June 2021 Update Introducing WebContainers: Run Node.js natively in your browser Interactive Docs: The new norm for Remote Work
npm, yarn and pnpm are now supported natively in WebContainers
Eric Simons CEO at StackBlitz making web development fast & secu · 2023-06-08 · via StackBlitz Blog

The road to innovation is a long and winding one and includes constant improvements and reiterations. This is very much the story of WebContainers as well. Our team reimagined and redesigned its building blocks multiple times to ensure their utmost speed and safety.

In this spirit, we have been working tirelessly the past year on shipping native support for all major package managers: npm, yarn v1, and pnpm. Last year at ViteConf we revealed that we had landed native support for pnpm and yarn in WebContainers.

Today we’re excited to announce the final piece of the puzzle: we have shipped native support for npm in WebContainers! Available now in all WebContainer projects on StackBlitz, and you can try it out here 🎉

This is a big deal for a few reasons:

Seamless compatibility

The best developer experience is one that “just works”.

Running native package managers wholesale in WebContainers brings seamless compatibility to your workflows, as all of the npm, yarn, and pnpm commands you use on local now run the exact same way inside StackBlitz.

Up to 5x faster than local (!)

It wouldn’t be a StackBlitz release if we didn’t make something a heck of a lot faster, and we’re proud to say this release is no exception.

We’ve been able to achieve up to 5x faster installs for npm, yarn and pnpm in WebContainers than on local. This performance jump is the result of multiple years of R&D into accelerated dependency resolution and rapid disk linking that allows us to run these package managers faster than they can locally. On average, running these package managers on our benchmarks yield between 100-200% on performance speeds compared to local and in some scenarios perform up to 500% faster.

Transitioning from Turbo

Custom solutions always comes with a number of tradeoffs, with the main being the time cost involved in ongoing maintainance. Turbo, our custom npm client, served us well when WebContainers were in their infancy but now that they are a stable technology, native support for package managers is a must to ensure their speed.

With native npm support, we are deprecating Turbo - it will be completely removed on January 1st, 2024. Native npm support means that now you can use all the familiar functionality from npm, such as git dependencies, tarball dependencies, and so on. It is a massive win for compatibility!

Breaking changes

In practical terms, there is a breaking change in peer dependencies affecting the projects hosted on StackBlitz: npm now automatically installs peer dependencies whereas Turbo didn’t to that. This means that if you run into issues, you can remove the lock file and re-run npm install --legacy-peer-deps. Important to note, --legacy-peer-deps will ignore all peer dependencies when installing, in the style of npm version 6 and lower.

When the installation fails, WebContainers will try to re-run the installation if dependencies are automatically installed on boot unless specified otherwise in the .stackblitzrc file.

More to come

With WebContainers being a stable technology, we are now prioritizing the features that will make it even easier to build next-generation apps that can run entirely in the browser. We have a few announcements lined up in the next few weeks so stay tuned by following us on Twitter!