CodePen Radio podcast show image

CodePen Radio

CodePen Blog

Podcast

Episodes

Listen, download, subscribe

422: Supporting Packages

Alex and Chris talk about how the 2.0 Editor supports packages from npm. The trick is both simple and complex. The idea is simple. We detect the packages you want to use, list them in an (editable) package.json file, then turn that into a in your HTML files that import those packages from esm.sh. Complex in that, well, all those steps are fairly difficult to get right, handle all edge cases, and do extremely quickly. All of which the CodePen Compiler does. Time Jumps

CodePen Radio RSS Feed


Share: Twitter • Facebook

Powered by Plink Plink icon plinkhq.com