webpack/declarations/plugins/SourceMapDevToolPlugin.d.ts

107 lines
2.7 KiB
TypeScript
Raw Normal View History

2018-05-08 12:04:57 +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
*/
/**
* This interface was referenced by `SourceMapDevToolPlugin`'s JSON-Schema
* via the `definition` "rules".
*/
2018-05-08 12:04:57 +08:00
export type Rules = Rule[] | Rule;
/**
* This interface was referenced by `SourceMapDevToolPlugin`'s JSON-Schema
* via the `definition` "rule".
*/
2018-05-08 12:04:57 +08:00
export type Rule =
| {
[k: string]: any;
}
| string;
export interface SourceMapDevToolPlugin {
/**
2018-09-19 16:17:33 +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
*/
2018-09-19 16:17:33 +08:00
append?: (false | null) | string;
2018-05-08 12:04:57 +08:00
/**
2018-09-19 16:17:33 +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
/**
* Exclude modules that match the given value from source map generation
*/
exclude?: Rules;
2018-09-19 16:17:33 +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
*/
fallbackModuleFilenameTemplate?:
| {
[k: string]: any;
}
| string;
/**
* Path prefix to which the [file] placeholder is relative to
*/
fileContext?: string;
2018-05-08 12:04:57 +08:00
/**
* Defines the output filename of the SourceMap (will be inlined if no value is provided)
*/
filename?: (false | null) | string;
/**
2018-09-19 16:17:33 +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
/**
2018-09-19 16:17:33 +08:00
* (deprecated) try to map original files line to line to generated files
2018-05-08 12:04:57 +08:00
*/
2018-09-19 16:17:33 +08:00
lineToLine?:
| boolean
2018-05-08 12:04:57 +08:00
| {
2018-09-19 16:17:33 +08:00
/**
* Exclude modules that match the given value from source map generation
*/
exclude?: Rules;
/**
* Include source maps for module paths that match the given value
*/
include?: Rules;
/**
* Include source maps for modules based on their extension (defaults to .js and .css)
*/
test?: Rules;
};
2018-05-08 12:04:57 +08:00
/**
2018-09-19 16:17:33 +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;
/**
* Generator string or function to create identifiers of modules for the 'sources' array in the SourceMap
*/
moduleFilenameTemplate?:
2018-05-08 12:04:57 +08:00
| {
[k: string]: any;
}
| string;
/**
* Namespace prefix to allow multiple webpack roots in the devtools
*/
namespace?: string;
/**
* Omit the 'sourceContents' array from the SourceMap
*/
noSources?: boolean;
/**
* Provide a custom public path for the SourceMapping comment
*/
publicPath?: string;
/**
2018-09-19 16:17:33 +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
/**
2018-09-19 16:17:33 +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
}