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
- Introduce async TextDetector create and availability methods (#110)
- Introduce async TextDetector create and availability methods (#110)
- Interpolate detection results in the face and barcode examples (#114)
- Interpolate detection results in the face and barcode examples (#114)
- chore: tidy up index.html (#1259)
- Editorial: Use the scope argument when computing its path (#1258)
- Convert text members to scalar value strings (#1253)
- Reflect the application context in the `display-mode` media feature (…
- editorial: list localizable members and include shortcut items in the…
- editorial: link or remove unused definitions (#1251)
Current
·
C2
·2026-04






