Skip to content

Commit

Permalink
fix: always show polyfill message for typescript (#460)
Browse files Browse the repository at this point in the history
  • Loading branch information
guybedford authored Jan 27, 2025
1 parent 5d1cea5 commit 1335f6d
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/es-module-shims.js
Original file line number Diff line number Diff line change
Expand Up @@ -798,6 +798,10 @@ function processScript(script, ready = readyStateCompleteCnt > 0) {
return initTs()
.then(() => {
const transformed = esmsTsTransform(source, pageBaseUrl);
if (transformed !== undefined) {
onpolyfill();
firstPolyfillLoad = false;
}
return topLevelLoad(
pageBaseUrl,
getFetchOpts(script),
Expand Down

0 comments on commit 1335f6d

Please sign in to comment.