Source Map - CI/CD用語集の定義
source map は minify された出力を元のソースへと結びつけ、stack trace を読みやすいまま保ちます。
source map は、コンパイルまたは minify された出力内の位置を元のソースへとマッピングするファイルで、debugger やエラーレポートが実際の行を指すようにします。コメントで参照される .map ファイルとして出力されます。
minification と transpilation の後、出力はもはやソースに似ていません。source map はそのマッピングを記録し、ブラウザの devtools やエラートラッカーが元のファイル、行、列を表示できるようにします。CI では、source map をエラートラッカーにアップロードしつつ、公開 bundle からは除外することがよくあります。
関連ガイド
Minification - CI/CD Glossary DefinitionMinification: Minification removes whitespace, comments, and unnecessary characters from code without changin…
Transpilation - CI/CD Glossary DefinitionTranspilation: Transpilation converts source code from one language or language version to another at the sam…
Manifest File - CI/CD Glossary DefinitionManifest File: A manifest file is a build-generated JSON that maps logical asset names to their hashed output…