We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents b84efe6 + 5f34acf commit 97b1718Copy full SHA for 97b1718
declarations/LoaderContext.d.ts
@@ -212,6 +212,12 @@ export interface LoaderRunnerLoaderContext<OptionsType> {
212
* Example: "/abc/resource.js?query#frag"
213
*/
214
resource: string;
215
+
216
+ /**
217
+ * Target of compilation.
218
+ * Example: "web"
219
+ */
220
+ target: string;
221
}
222
223
type AdditionalData = {
types.d.ts
@@ -6595,6 +6595,12 @@ declare interface LoaderRunnerLoaderContext<OptionsType> {
6595
6596
6597
6598
6599
6600
6601
6602
6603
6604
6605
declare class LoaderTargetPlugin {
6606
constructor(target: string);
0 commit comments