콘텐츠로 이동

RollupPluginContext

Defined in: core/index.ts:2407

addWatchFile(id): void

Defined in: core/index.ts:2413

Watch 모드에서 추가로 감시할 파일을 등록. 현재 no-op (graph mutation 미지원).

string

void


emitFile(file): string

Defined in: core/index.ts:2421

Asset/chunk 추가 emit. 현재 미지원 — 호출 시 Error throw.

unknown

string


error(error): never

Defined in: core/index.ts:2409

plugin 안에서 error 를 throw 한다. Rollup this.error 호환.

unknown

never


resolve(source, importer?, options?): Promise<{ external?: boolean; id: string; } | null>

Defined in: core/index.ts:2415

모듈 resolve. 현재 미지원 — 호출 시 Error throw 로 plugin 작성자에게 알림.

string

string | null

unknown

Promise<{ external?: boolean; id: string; } | null>


warn(message): void

Defined in: core/index.ts:2411

warning 을 콘솔에 출력한다. Rollup this.warn 호환 — 빌드를 멈추지 않음.

unknown

void