Target (build) - CI/CD用語集の定義
build target は出力が動作すべき環境と構文レベルを bundler に伝えます。
build target は bundler が出力をコンパイルする対象の runtime 環境で、ブラウザ、Node、特定の ECMAScript バージョンなどです。構文レベル、モジュール形式、利用可能な global を制御します。
es2020、node18、web のような target を設定すると、構文をどこまで downlevel するか、どの built-in を前提とするかを bundler に伝えます。これは browserslist や環境モードと連携して動作します。CIでは、明示的な target がマシン間で出力を決定的に保ちます。
関連ガイド
Browserslist - CI/CD Glossary DefinitionBrowserslist: Browserslist is a shared configuration that declares which browsers a project supports, so tool…
Environment Mode - CI/CD Glossary DefinitionEnvironment Mode: Environment mode is the setting (typically `development` or `production`) that tells a bund…
Polyfill - CI/CD Glossary DefinitionPolyfill: A polyfill is code that implements a modern feature in environments that lack it, so newer APIs wor…