Nelze vybrat více než 25 témat Téma musí začínat písmenem nebo číslem, může obsahovat pomlčky („-“) a může být dlouhé až 35 znaků.

DllReferencePlugin.d.ts 2.8KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126
  1. /**
  2. * This file was automatically generated.
  3. * DO NOT MODIFY BY HAND.
  4. * Run `yarn special-lint-fix` to update
  5. */
  6. export type DllReferencePluginOptions =
  7. | {
  8. /**
  9. * (absolute path) context of requests in the manifest (or content property)
  10. */
  11. context?: string;
  12. /**
  13. * Extensions used to resolve modules in the dll bundle (only used when using 'scope')
  14. */
  15. extensions?: string[];
  16. /**
  17. * An object containing content and name or a string to the absolute path of the JSON manifest to be loaded upon compilation
  18. */
  19. manifest: DllReferencePluginOptionsManifest | string;
  20. /**
  21. * The name where the dll is exposed (external name, defaults to manifest.name)
  22. */
  23. name?: string;
  24. /**
  25. * Prefix which is used for accessing the content of the dll
  26. */
  27. scope?: string;
  28. /**
  29. * How the dll is exposed (libraryTarget, defaults to manifest.type)
  30. */
  31. sourceType?: DllReferencePluginOptionsSourceType;
  32. /**
  33. * The way how the export of the dll bundle is used
  34. */
  35. type?: "require" | "object";
  36. }
  37. | {
  38. /**
  39. * The mappings from request to module info
  40. */
  41. content: DllReferencePluginOptionsContent;
  42. /**
  43. * (absolute path) context of requests in the manifest (or content property)
  44. */
  45. context?: string;
  46. /**
  47. * Extensions used to resolve modules in the dll bundle (only used when using 'scope')
  48. */
  49. extensions?: string[];
  50. /**
  51. * The name where the dll is exposed (external name)
  52. */
  53. name: string;
  54. /**
  55. * Prefix which is used for accessing the content of the dll
  56. */
  57. scope?: string;
  58. /**
  59. * How the dll is exposed (libraryTarget)
  60. */
  61. sourceType?: DllReferencePluginOptionsSourceType;
  62. /**
  63. * The way how the export of the dll bundle is used
  64. */
  65. type?: "require" | "object";
  66. };
  67. /**
  68. * The type how the dll is exposed (external type)
  69. */
  70. export type DllReferencePluginOptionsSourceType =
  71. | "var"
  72. | "assign"
  73. | "this"
  74. | "window"
  75. | "global"
  76. | "commonjs"
  77. | "commonjs2"
  78. | "commonjs-module"
  79. | "amd"
  80. | "amd-require"
  81. | "umd"
  82. | "umd2"
  83. | "jsonp";
  84. /**
  85. * An object containing content, name and type
  86. */
  87. export interface DllReferencePluginOptionsManifest {
  88. /**
  89. * The mappings from request to module info
  90. */
  91. content: DllReferencePluginOptionsContent;
  92. /**
  93. * The name where the dll is exposed (external name)
  94. */
  95. name?: string;
  96. /**
  97. * The type how the dll is exposed (external type)
  98. */
  99. type?: DllReferencePluginOptionsSourceType;
  100. }
  101. /**
  102. * The mappings from request to module info
  103. */
  104. export interface DllReferencePluginOptionsContent {
  105. /**
  106. * Module info
  107. */
  108. [k: string]: {
  109. /**
  110. * Meta information about the module
  111. */
  112. buildMeta?: {
  113. [k: string]: any;
  114. };
  115. /**
  116. * Information about the provided exports of the module
  117. */
  118. exports?: true | string[];
  119. /**
  120. * Module ID
  121. */
  122. id: number | string;
  123. };
  124. }