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

推荐订阅源

L
Lohrmann on Cybersecurity
Martin Fowler
Martin Fowler
Engineering at Meta
Engineering at Meta
腾讯CDC
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
Microsoft Azure Blog
Microsoft Azure Blog
G
Google Developers Blog
TaoSecurity Blog
TaoSecurity Blog
博客园_首页
Vercel News
Vercel News
Hugging Face - Blog
Hugging Face - Blog
D
Darknet – Hacking Tools, Hacker News & Cyber Security
Last Week in AI
Last Week in AI
cs.CL updates on arXiv.org
cs.CL updates on arXiv.org
T
The Exploit Database - CXSecurity.com
量子位
Project Zero
Project Zero
A
Arctic Wolf
小众软件
小众软件
NISL@THU
NISL@THU
C
CERT Recently Published Vulnerability Notes
有赞技术团队
有赞技术团队
MongoDB | Blog
MongoDB | Blog
博客园 - 聂微东
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
N
News and Events Feed by Topic
宝玉的分享
宝玉的分享
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
T
Troy Hunt's Blog
P
Privacy & Cybersecurity Law Blog
Security Latest
Security Latest
B
Blog
酷 壳 – CoolShell
酷 壳 – CoolShell
D
DataBreaches.Net
Schneier on Security
Schneier on Security
The Hacker News
The Hacker News
K
Kaspersky official blog
C
Check Point Blog
Hacker News: Ask HN
Hacker News: Ask HN
cs.AI updates on arXiv.org
cs.AI updates on arXiv.org
Webroot Blog
Webroot Blog
www.infosecurity-magazine.com
www.infosecurity-magazine.com
人人都是产品经理
人人都是产品经理
AI
AI
Cisco Talos Blog
Cisco Talos Blog
MyScale Blog
MyScale Blog
Cloudbric
Cloudbric
B
Blog RSS Feed
S
Schneier on Security
P
Palo Alto Networks 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!