Transpilation - CI/CD用語集の定義
transpilation は、TypeScript から JavaScript のように、ソースコードをターゲット環境が理解できる同等の形式に書き換えます。
transpilation は、TypeScript から JavaScript、あるいはモダン JS から ES5 のように、ソースコードを同じ抽象度レベルの別の言語や言語バージョンに変換します。Babel、tsc、SWC が一般的な transpiler です。
transpilation により、モダンまたは型付きのコードを書きながら、古いブラウザや Node バージョンが受け入れるものを出荷できます。これは bundling とは別のステップですが、bundler はしばしば loader を介して transpiler を呼び出します。CI では、transpile エラー (型エラーや構文エラー) が build を素早く失敗させます。
関連ガイド
Polyfill - CI/CD Glossary DefinitionPolyfill: A polyfill is code that implements a modern feature in environments that lack it, so newer APIs wor…
Browserslist - CI/CD Glossary DefinitionBrowserslist: Browserslist is a shared configuration that declares which browsers a project supports, so tool…
Target (build) - CI/CD Glossary DefinitionTarget (build): A build target is the runtime environment a bundler compiles output for, such as a browser, N…