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
- F1 drivers go small as Lego puts entire grid in plastic
- I Expected A Faster i4 M60. Instead, The 838 hp Electric BMW M3 Drives Like A Real M3 On Track
- This Week’s Weird and Wonderful—November 13, 2026
- King of No Pain
- ‘I did not sign up’: Obren on getting cast in ‘Married at First Sight’
- Chris’ Corner: SVG Tools
- Chris’ Corner: Two Liners
- Chris’ Corner: AI Browsers
- Google Chrome & Iframe `allow` Permissions Problems
- A Todo List
Current
·
C2
·2026-04





