Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.

SourceMapDevToolPlugin.d.ts 2.7KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394
  1. /**
  2. * This file was automatically generated.
  3. * DO NOT MODIFY BY HAND.
  4. * Run `yarn special-lint-fix` to update
  5. */
  6. /**
  7. * This interface was referenced by `SourceMapDevToolPluginOptions`'s JSON-Schema
  8. * via the `definition` "rules".
  9. */
  10. export type Rules = Rule[] | Rule;
  11. /**
  12. * This interface was referenced by `SourceMapDevToolPluginOptions`'s JSON-Schema
  13. * via the `definition` "rule".
  14. */
  15. export type Rule = RegExp | string;
  16. export interface SourceMapDevToolPluginOptions {
  17. /**
  18. * 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
  19. */
  20. append?: (false | null) | string;
  21. /**
  22. * Indicates whether column mappings should be used (defaults to true)
  23. */
  24. columns?: boolean;
  25. /**
  26. * Exclude modules that match the given value from source map generation
  27. */
  28. exclude?: Rules;
  29. /**
  30. * 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
  31. */
  32. fallbackModuleFilenameTemplate?: Function | string;
  33. /**
  34. * Path prefix to which the [file] placeholder is relative to
  35. */
  36. fileContext?: string;
  37. /**
  38. * Defines the output filename of the SourceMap (will be inlined if no value is provided)
  39. */
  40. filename?: (false | null) | string;
  41. /**
  42. * Include source maps for module paths that match the given value
  43. */
  44. include?: Rules;
  45. /**
  46. * (deprecated) try to map original files line to line to generated files
  47. */
  48. lineToLine?:
  49. | boolean
  50. | {
  51. /**
  52. * Exclude modules that match the given value from source map generation
  53. */
  54. exclude?: Rules;
  55. /**
  56. * Include source maps for module paths that match the given value
  57. */
  58. include?: Rules;
  59. /**
  60. * Include source maps for modules based on their extension (defaults to .js and .css)
  61. */
  62. test?: Rules;
  63. };
  64. /**
  65. * Indicates whether SourceMaps from loaders should be used (defaults to true)
  66. */
  67. module?: boolean;
  68. /**
  69. * Generator string or function to create identifiers of modules for the 'sources' array in the SourceMap
  70. */
  71. moduleFilenameTemplate?: Function | string;
  72. /**
  73. * Namespace prefix to allow multiple webpack roots in the devtools
  74. */
  75. namespace?: string;
  76. /**
  77. * Omit the 'sourceContents' array from the SourceMap
  78. */
  79. noSources?: boolean;
  80. /**
  81. * Provide a custom public path for the SourceMapping comment
  82. */
  83. publicPath?: string;
  84. /**
  85. * Provide a custom value for the 'sourceRoot' property in the SourceMap
  86. */
  87. sourceRoot?: string;
  88. /**
  89. * Include source maps for modules based on their extension (defaults to .js and .css)
  90. */
  91. test?: Rules;
  92. }