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 <script type="importmap"> 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.
Current
·
C2
·2026-04
422: Supporting Packages
Find Your Interest
- Chris’ Corner: Early Learning
- JSNES: a Nintendo emulator built in JavaScript
- Chris’ Corner: Design
- Chris’ Corner: What do you do with an HTML email?
- Chris’ Corner: Click Something Do Something
- The Launch of CodePen 2.0
- Chris’ Corner: Lovingly Esoteric CSS
- Podcast Technology (Brenda Salinas)
- Thoughts on AMP
- Pixar proves that, yes, Mafia cats can still be cute in new Gatto trailer
Current
·
C2
·2026-04





