1
0
mirror of https://github.com/lancedikson/bowser synced 2026-09-23 04:24:54 +00:00

fix: bundled.js is not ES5 — restore ES5 output and guard it (#632)

This commit is contained in:
Naor Peled
2026-09-05 23:16:26 +03:00
committed by GitHub
parent 28174aca5e
commit c1208b4a56
11 changed files with 490 additions and 16 deletions

View File

@@ -128,3 +128,13 @@ jobs:
# of bowser, and preserved here on purpose.
- name: Are the types wrong?
run: pnpm exec attw --pack . --profile node16 --entrypoints .
# attw checks that the types *resolve* to the right file per condition.
# This compiles a real consumer against the packed tarball in every
# module resolution mode, which is what catches a declaration that
# resolves fine but does not match the runtime.
- name: Type-check consumers
run: |
mkdir -p tarball
npm pack --pack-destination ./tarball
node test/types/check.mjs tarball/*.tgz