extension-develop
Version:
The develop step of Extension.js
19 lines (18 loc) • 652 B
TypeScript
import { Compiler } from '@rspack/core';
import { type FilepathList, type PluginInterface } from '../../webpack-types';
/**
* JsonPlugin is responsible for handling the JSON files defined
* in the manifest.json. It emits the JSON files to the output
* directory and adds them to the file dependencies of the compilation.
*
* Features supported:
* - declarative_net_request.ruleset
* - storage.managed_schema
*/
export declare class JsonPlugin {
readonly manifestPath: string;
readonly includeList?: FilepathList;
readonly excludeList?: FilepathList;
constructor(options: PluginInterface);
apply(compiler: Compiler): void;
}