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.
|
|
|
|
* Run `yarn special-lint-fix` to update
|
2018-05-08 12:04:57 +08:00
|
|
|
*/
|
|
|
|
|
2018-09-18 19:57:44 +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-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
|
|
|
/**
|
2020-03-09 21:14:44 +08:00
|
|
|
* Include source maps for modules based on their extension (defaults to .js and .css).
|
2018-09-18 19:57:44 +08:00
|
|
|
*/
|
2018-09-21 14:39:15 +08:00
|
|
|
export type Rule = RegExp | string;
|
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
|
|
|
|
| ((
|
|
|
|
pathData: import("../../lib/Compilation").PathData,
|
|
|
|
assetInfo?: import("../../lib/Compilation").AssetInfo
|
|
|
|
) => string);
|
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;
|
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
|
|
|
*/
|
2020-03-26 16:48:21 +08:00
|
|
|
fallbackModuleFilenameTemplate?: string | Function;
|
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;
|
|
|
|
/**
|
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
|
|
|
*/
|
2020-03-26 16:48:21 +08:00
|
|
|
moduleFilenameTemplate?: string | Function;
|
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;
|
2024-11-08 20:49:08 +08:00
|
|
|
/**
|
|
|
|
* Include debugIds in sources and sourcemaps.
|
|
|
|
*/
|
|
|
|
debugIds?: boolean;
|
2018-05-08 12:04:57 +08:00
|
|
|
}
|