feat: Add `target` to `LoaderContext` type
This commit is contained in:
parent
b7fc4d876d
commit
5f34acfbc0
|
@ -212,6 +212,12 @@ export interface LoaderRunnerLoaderContext<OptionsType> {
|
|||
* Example: "/abc/resource.js?query#frag"
|
||||
*/
|
||||
resource: string;
|
||||
|
||||
/**
|
||||
* Target of compilation.
|
||||
* Example: "web"
|
||||
*/
|
||||
target: string;
|
||||
}
|
||||
|
||||
type AdditionalData = {
|
||||
|
|
|
@ -6595,6 +6595,12 @@ declare interface LoaderRunnerLoaderContext<OptionsType> {
|
|||
* Example: "/abc/resource.js?query#frag"
|
||||
*/
|
||||
resource: string;
|
||||
|
||||
/**
|
||||
* Target of compilation.
|
||||
* Example: "web"
|
||||
*/
|
||||
target: string;
|
||||
}
|
||||
declare class LoaderTargetPlugin {
|
||||
constructor(target: string);
|
||||
|
|
Loading…
Reference in New Issue