2020-05-12 21:58:14 +08:00
|
|
|
/*
|
2018-09-18 19:57:44 +08:00
|
|
|
* This file was automatically generated.
|
|
|
|
* DO NOT MODIFY BY HAND.
|
2025-05-02 00:16:09 +08:00
|
|
|
* Run `yarn fix:special` to update
|
2018-05-08 12:04:57 +08:00
|
|
|
*/
|
|
|
|
|
2018-09-18 19:57:44 +08:00
|
|
|
/**
|
2025-09-30 23:39:56 +08:00
|
|
|
* One or multiple conditions used to match resource.
|
2018-09-18 19:57:44 +08:00
|
|
|
*/
|
2018-05-08 12:04:57 +08:00
|
|
|
export type Rules = Rule[] | Rule;
|
2018-09-18 19:57:44 +08:00
|
|
|
/**
|
2025-09-30 23:39:56 +08:00
|
|
|
* Condition used to match resource (string, RegExp or Function).
|
2018-09-18 19:57:44 +08:00
|
|
|
*/
|
2025-09-30 02:22:46 +08:00
|
|
|
export type Rule = RegExp | string | ((str: string) => boolean);
|
2018-05-08 12:04:57 +08:00
|
|
|
|
2018-09-20 16:13:38 +08:00
|
|
|
export interface SourceMapDevToolPluginOptions {
|
2018-05-08 12:04:57 +08:00
|
|
|
/**
|
2020-03-09 21:14:44 +08:00
|
|
|
* Appends the given value to the original asset. Usually the #sourceMappingURL comment. [url] is replaced with a URL to the source map file. false disables the appending.
|
2018-05-08 12:04:57 +08:00
|
|
|
*/
|
2023-05-24 13:39:36 +08:00
|
|
|
append?:
|
|
|
|
| (false | null)
|
|
|
|
| string
|
2025-09-11 08:10:10 +08:00
|
|
|
| import("../../lib/TemplatedPathPlugin").TemplatePathFn;
|
2018-05-08 12:04:57 +08:00
|
|
|
/**
|
2020-03-09 21:14:44 +08:00
|
|
|
* Indicates whether column mappings should be used (defaults to true).
|
2018-05-08 12:04:57 +08:00
|
|
|
*/
|
2018-09-19 16:17:33 +08:00
|
|
|
columns?: boolean;
|
2024-11-08 23:14:49 +08:00
|
|
|
/**
|
|
|
|
* Emit debug IDs into source and SourceMap.
|
|
|
|
*/
|
|
|
|
debugIds?: boolean;
|
2018-05-08 12:04:57 +08:00
|
|
|
/**
|
2020-03-09 21:14:44 +08:00
|
|
|
* Exclude modules that match the given value from source map generation.
|
2018-05-08 12:04:57 +08:00
|
|
|
*/
|
|
|
|
exclude?: Rules;
|
2018-09-19 16:17:33 +08:00
|
|
|
/**
|
2020-03-09 21:14:44 +08:00
|
|
|
* Generator string or function to create identifiers of modules for the 'sources' array in the SourceMap used only if 'moduleFilenameTemplate' would result in a conflict.
|
2018-09-19 16:17:33 +08:00
|
|
|
*/
|
2025-04-26 01:43:01 +08:00
|
|
|
fallbackModuleFilenameTemplate?:
|
|
|
|
| string
|
|
|
|
| import("../../lib/ModuleFilenameHelpers").ModuleFilenameTemplateFunction;
|
2018-09-19 16:17:33 +08:00
|
|
|
/**
|
2020-03-09 21:14:44 +08:00
|
|
|
* Path prefix to which the [file] placeholder is relative to.
|
2018-09-19 16:17:33 +08:00
|
|
|
*/
|
|
|
|
fileContext?: string;
|
2018-05-08 12:04:57 +08:00
|
|
|
/**
|
2020-03-09 21:14:44 +08:00
|
|
|
* Defines the output filename of the SourceMap (will be inlined if no value is provided).
|
2018-05-08 12:04:57 +08:00
|
|
|
*/
|
|
|
|
filename?: (false | null) | string;
|
2025-09-27 20:02:32 +08:00
|
|
|
/**
|
2025-09-27 20:27:55 +08:00
|
|
|
* Decide whether to ignore source files that match the specified value in the SourceMap.
|
2025-09-27 20:02:32 +08:00
|
|
|
*/
|
2025-09-30 23:39:56 +08:00
|
|
|
ignoreList?: Rules;
|
2018-05-08 12:04:57 +08:00
|
|
|
/**
|
2020-03-09 21:14:44 +08:00
|
|
|
* Include source maps for module paths that match the given value.
|
2018-05-08 12:04:57 +08:00
|
|
|
*/
|
2018-09-19 16:17:33 +08:00
|
|
|
include?: Rules;
|
2018-05-08 12:04:57 +08:00
|
|
|
/**
|
2020-03-09 21:14:44 +08:00
|
|
|
* Indicates whether SourceMaps from loaders should be used (defaults to true).
|
2018-05-08 12:04:57 +08:00
|
|
|
*/
|
2018-09-19 16:17:33 +08:00
|
|
|
module?: boolean;
|
|
|
|
/**
|
2020-03-09 21:14:44 +08:00
|
|
|
* Generator string or function to create identifiers of modules for the 'sources' array in the SourceMap.
|
2018-09-19 16:17:33 +08:00
|
|
|
*/
|
2025-04-26 01:43:01 +08:00
|
|
|
moduleFilenameTemplate?:
|
|
|
|
| string
|
|
|
|
| import("../../lib/ModuleFilenameHelpers").ModuleFilenameTemplateFunction;
|
2018-05-08 12:04:57 +08:00
|
|
|
/**
|
2020-03-09 21:14:44 +08:00
|
|
|
* Namespace prefix to allow multiple webpack roots in the devtools.
|
2018-05-08 12:04:57 +08:00
|
|
|
*/
|
|
|
|
namespace?: string;
|
|
|
|
/**
|
2020-03-09 21:14:44 +08:00
|
|
|
* Omit the 'sourceContents' array from the SourceMap.
|
2018-05-08 12:04:57 +08:00
|
|
|
*/
|
|
|
|
noSources?: boolean;
|
|
|
|
/**
|
2020-03-09 21:14:44 +08:00
|
|
|
* Provide a custom public path for the SourceMapping comment.
|
2018-05-08 12:04:57 +08:00
|
|
|
*/
|
|
|
|
publicPath?: string;
|
|
|
|
/**
|
2020-03-09 21:14:44 +08:00
|
|
|
* Provide a custom value for the 'sourceRoot' property in the SourceMap.
|
2018-05-08 12:04:57 +08:00
|
|
|
*/
|
2018-09-19 16:17:33 +08:00
|
|
|
sourceRoot?: string;
|
2018-05-08 12:04:57 +08:00
|
|
|
/**
|
2020-03-09 21:14:44 +08:00
|
|
|
* Include source maps for modules based on their extension (defaults to .js and .css).
|
2018-05-08 12:04:57 +08:00
|
|
|
*/
|
2018-09-19 16:17:33 +08:00
|
|
|
test?: Rules;
|
2018-05-08 12:04:57 +08:00
|
|
|
}
|