From 1335f6de1c8527048dc3d91c29cc157a06d36918 Mon Sep 17 00:00:00 2001 From: Guy Bedford Date: Sun, 26 Jan 2025 21:23:41 -0800 Subject: [PATCH] fix: always show polyfill message for typescript (#460) --- src/es-module-shims.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/es-module-shims.js b/src/es-module-shims.js index 942b01d4..2d38335b 100755 --- a/src/es-module-shims.js +++ b/src/es-module-shims.js @@ -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),