Module Resolution - CI/CD用語集の定義
module resolution は import 文字列を bundler が読み込むべき実際のファイルに変換します。
module resolution は bundler や runtime が import specifier(./util や lodash など)を実際のファイルパスに変換するために使うプロセスです。ルールは拡張子、index file、node_modules の lookup、alias をカバーします。
解決には設定可能なルールが適用されます。拡張子を試す、node_modules を探す、alias やパッケージの exports フィールドを尊重する、などです。解決の失敗は典型的な「Module not found」の build エラーを生じます。CIでは、これらのエラーは早期に表面化し build ステージを失敗させます。
関連ガイド
Dependency Graph - CI/CD Glossary DefinitionDependency Graph: A dependency graph is the directed graph a bundler builds by starting at entry points and f…
Module Bundler - CI/CD Glossary DefinitionModule Bundler: A module bundler is a bundler that understands module systems (ES modules, CommonJS) and stit…
Loader (webpack) - CI/CD Glossary DefinitionLoader (webpack): A loader in webpack is a transform applied to a file as it is imported, turning non-JavaScr…