Skip to content
Latchkey

Module Resolution - CI/CD用語集の定義

module resolution は import 文字列を bundler が読み込むべき実際のファイルに変換します。

module resolution は bundler や runtime が import specifier(./utillodash など)を実際のファイルパスに変換するために使うプロセスです。ルールは拡張子、index file、node_modules の lookup、alias をカバーします。

解決には設定可能なルールが適用されます。拡張子を試す、node_modules を探す、alias やパッケージの exports フィールドを尊重する、などです。解決の失敗は典型的な「Module not found」の build エラーを生じます。CIでは、これらのエラーは早期に表面化し build ステージを失敗させます。

関連ガイド