EntryPlugin
コンパイル時にエントリチャンクを追加します。チャンクの名前はoptions.name
で、1つのモジュール(および依存関係)のみが含まれます。モジュールはcontext
(絶対パス)のentry
から解決されます。
new rspack.EntryPlugin(context, entry, options);
オプション
context
モジュールは、context
(絶対パス)内のentry
から解決されます。
entry
エントリモジュールのリクエストパス。
options
エントリモジュールに関連する設定を調整します。
type EntryOptions = {
name?: string;
runtime?: EntryRuntime;
chunkLoading?: ChunkLoading;
asyncChunks?: boolean;
publicPath?: PublicPath;
baseUri?: string;
filename?: Filename;
};