DllReferencePlugin.json 5.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206
  1. {
  2. "definitions": {
  3. "DllReferencePluginOptionsContent": {
  4. "description": "The mappings from request to module info",
  5. "type": "object",
  6. "additionalProperties": {
  7. "description": "Module info",
  8. "type": "object",
  9. "additionalProperties": false,
  10. "properties": {
  11. "buildMeta": {
  12. "description": "Meta information about the module",
  13. "type": "object"
  14. },
  15. "exports": {
  16. "description": "Information about the provided exports of the module",
  17. "anyOf": [
  18. {
  19. "description": "Exports unknown/dynamic",
  20. "enum": [true]
  21. },
  22. {
  23. "description": "List of provided exports of the module",
  24. "type": "array",
  25. "items": {
  26. "description": "Name of the export",
  27. "type": "string",
  28. "minLength": 1
  29. }
  30. }
  31. ]
  32. },
  33. "id": {
  34. "description": "Module ID",
  35. "anyOf": [
  36. {
  37. "type": "number"
  38. },
  39. {
  40. "type": "string",
  41. "minLength": 1
  42. }
  43. ]
  44. }
  45. },
  46. "required": ["id"]
  47. },
  48. "minProperties": 1
  49. },
  50. "DllReferencePluginOptionsManifest": {
  51. "description": "An object containing content, name and type",
  52. "type": "object",
  53. "additionalProperties": false,
  54. "properties": {
  55. "content": {
  56. "description": "The mappings from request to module info",
  57. "anyOf": [
  58. {
  59. "$ref": "#/definitions/DllReferencePluginOptionsContent"
  60. }
  61. ]
  62. },
  63. "name": {
  64. "description": "The name where the dll is exposed (external name)",
  65. "type": "string",
  66. "minLength": 1
  67. },
  68. "type": {
  69. "description": "The type how the dll is exposed (external type)",
  70. "anyOf": [
  71. {
  72. "$ref": "#/definitions/DllReferencePluginOptionsSourceType"
  73. }
  74. ]
  75. }
  76. },
  77. "required": ["content"]
  78. },
  79. "DllReferencePluginOptionsSourceType": {
  80. "description": "The type how the dll is exposed (external type)",
  81. "enum": [
  82. "var",
  83. "assign",
  84. "this",
  85. "window",
  86. "global",
  87. "commonjs",
  88. "commonjs2",
  89. "commonjs-module",
  90. "amd",
  91. "amd-require",
  92. "umd",
  93. "umd2",
  94. "jsonp"
  95. ]
  96. }
  97. },
  98. "title": "DllReferencePluginOptions",
  99. "anyOf": [
  100. {
  101. "type": "object",
  102. "additionalProperties": false,
  103. "properties": {
  104. "context": {
  105. "description": "(absolute path) context of requests in the manifest (or content property)",
  106. "type": "string",
  107. "absolutePath": true
  108. },
  109. "extensions": {
  110. "description": "Extensions used to resolve modules in the dll bundle (only used when using 'scope')",
  111. "type": "array",
  112. "items": {
  113. "description": "An extension",
  114. "type": "string"
  115. }
  116. },
  117. "manifest": {
  118. "description": "An object containing content and name or a string to the absolute path of the JSON manifest to be loaded upon compilation",
  119. "oneOf": [
  120. {
  121. "$ref": "#/definitions/DllReferencePluginOptionsManifest"
  122. },
  123. {
  124. "type": "string",
  125. "absolutePath": true
  126. }
  127. ]
  128. },
  129. "name": {
  130. "description": "The name where the dll is exposed (external name, defaults to manifest.name)",
  131. "type": "string",
  132. "minLength": 1
  133. },
  134. "scope": {
  135. "description": "Prefix which is used for accessing the content of the dll",
  136. "type": "string",
  137. "minLength": 1
  138. },
  139. "sourceType": {
  140. "description": "How the dll is exposed (libraryTarget, defaults to manifest.type)",
  141. "anyOf": [
  142. {
  143. "$ref": "#/definitions/DllReferencePluginOptionsSourceType"
  144. }
  145. ]
  146. },
  147. "type": {
  148. "description": "The way how the export of the dll bundle is used",
  149. "enum": ["require", "object"]
  150. }
  151. },
  152. "required": ["manifest"]
  153. },
  154. {
  155. "type": "object",
  156. "additionalProperties": false,
  157. "properties": {
  158. "content": {
  159. "description": "The mappings from request to module info",
  160. "anyOf": [
  161. {
  162. "$ref": "#/definitions/DllReferencePluginOptionsContent"
  163. }
  164. ]
  165. },
  166. "context": {
  167. "description": "(absolute path) context of requests in the manifest (or content property)",
  168. "type": "string",
  169. "absolutePath": true
  170. },
  171. "extensions": {
  172. "description": "Extensions used to resolve modules in the dll bundle (only used when using 'scope')",
  173. "type": "array",
  174. "items": {
  175. "description": "An extension",
  176. "type": "string"
  177. }
  178. },
  179. "name": {
  180. "description": "The name where the dll is exposed (external name)",
  181. "type": "string",
  182. "minLength": 1
  183. },
  184. "scope": {
  185. "description": "Prefix which is used for accessing the content of the dll",
  186. "type": "string",
  187. "minLength": 1
  188. },
  189. "sourceType": {
  190. "description": "How the dll is exposed (libraryTarget)",
  191. "anyOf": [
  192. {
  193. "$ref": "#/definitions/DllReferencePluginOptionsSourceType"
  194. }
  195. ]
  196. },
  197. "type": {
  198. "description": "The way how the export of the dll bundle is used",
  199. "enum": ["require", "object"]
  200. }
  201. },
  202. "required": ["content", "name"]
  203. }
  204. ]
  205. }