EntryPlugin

コンパイル時にエントリチャンクを追加します。チャンクの名前はoptions.nameで、1つのモジュール(および依存関係)のみが含まれます。モジュールはcontext(絶対パス)のentryから解決されます。

new rspack.EntryPlugin(context, entry, options);

オプション

context

モジュールは、context(絶対パス)内のentryから解決されます。

  • 型: string

entry

エントリモジュールのリクエストパス。

  • 型: string

options

エントリモジュールに関連する設定を調整します。

type EntryOptions = {
  name?: string;
  runtime?: EntryRuntime;
  chunkLoading?: ChunkLoading;
  asyncChunks?: boolean;
  publicPath?: PublicPath;
  baseUri?: string;
  filename?: Filename;
};