Skip to content

security: remove polyfill.io script tag + FIX CI#206

Merged
sinatragianpaolo merged 2 commits into
developfrom
UN-2456
Mar 19, 2026
Merged

security: remove polyfill.io script tag + FIX CI#206
sinatragianpaolo merged 2 commits into
developfrom
UN-2456

Conversation

@sinatragianpaolo
Copy link
Copy Markdown
Contributor

@sinatragianpaolo sinatragianpaolo commented Mar 9, 2026

Removes the polyfill.io CDN script tag from .storybook/preview-head.html.

The domain was compromised in 2024 and used to inject malicious JavaScript on mobile. All loaded features (replaceAll, map, reduce) are natively supported by modern browsers — no alternative needed.

Ref: https://www.agid.gov.it/it/notizie/polyfillio-il-cert-agid-consiglia-alle-pa-che-lo-utilizzano-sui-loro-siti-di-rimuoverlo


Fixes CI: configure Storybook to use vite.config.storybook.mts instead of the default vite.config.mts.

The main Vite config includes vite-plugin-dts with rollupTypes: true, which triggers API Extractor and requires dist/index.d.ts to exist. During Storybook build in CI that file is not present, causing the build to fail. The storybook-specific config skips this step entirely.

Same fix already applied in unguess-design-system: AppQuality/unguess-design-system@a320739

…html

The polyfill.io domain was compromised in 2024 and used to inject
malicious JavaScript via CDN responses. All loaded features (replaceAll,
map, reduce) are natively supported by all modern browsers — no
alternative needed.
@sinatragianpaolo sinatragianpaolo changed the title security: remove polyfill.io script tag security: remove polyfill.io script tag + FIX CI Mar 12, 2026
@sinatragianpaolo sinatragianpaolo merged commit 2a25d99 into develop Mar 19, 2026
2 checks passed
@sinatragianpaolo sinatragianpaolo deleted the UN-2456 branch March 19, 2026 14:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants