Polyfill - CI/CD Glossary Definition
A polyfill is code that implements a newer API on older runtimes that lack it, so the same source can run on environments that do not natively support the feature.
Versus shim
A polyfill provides a feature that should already exist per a standard; a shim more broadly intercepts or adapts an API. Tools like core-js supply browser polyfills during the build.
Related guides
Shim - CI/CD Glossary DefinitionShim: A shim is a small compatibility layer that intercepts calls and adapts them, for example translating a…
Transpilation - CI/CD Glossary DefinitionTranspilation: Transpilation (source-to-source compilation) translates code from one high-level language or l…
Bundling - CI/CD Glossary DefinitionBundling: Bundling combines many source modules and their dependencies into a smaller number of output files,…