| [9af201e] | 1 | {
|
|---|
| 2 | "definitions": {
|
|---|
| 3 | "VirtualModule": {
|
|---|
| 4 | "description": "A virtual module definition.",
|
|---|
| 5 | "type": "object",
|
|---|
| 6 | "additionalProperties": false,
|
|---|
| 7 | "properties": {
|
|---|
| 8 | "context": {
|
|---|
| 9 | "description": "The context for the virtual module. A string path. Defaults to 'auto', which will try to resolve the context from the module id.",
|
|---|
| 10 | "type": "string"
|
|---|
| 11 | },
|
|---|
| 12 | "source": {
|
|---|
| 13 | "description": "The source function that provides the virtual content.",
|
|---|
| 14 | "instanceof": "Function",
|
|---|
| 15 | "tsType": "import('../../../lib/schemes/VirtualUrlPlugin').SourceFn"
|
|---|
| 16 | },
|
|---|
| 17 | "type": {
|
|---|
| 18 | "description": "The module type.",
|
|---|
| 19 | "type": "string"
|
|---|
| 20 | },
|
|---|
| 21 | "version": {
|
|---|
| 22 | "description": "Optional version function or value for cache invalidation.",
|
|---|
| 23 | "anyOf": [
|
|---|
| 24 | {
|
|---|
| 25 | "type": "boolean",
|
|---|
| 26 | "enum": [true]
|
|---|
| 27 | },
|
|---|
| 28 | {
|
|---|
| 29 | "type": "string"
|
|---|
| 30 | },
|
|---|
| 31 | {
|
|---|
| 32 | "instanceof": "Function",
|
|---|
| 33 | "tsType": "import('../../../lib/schemes/VirtualUrlPlugin').VersionFn"
|
|---|
| 34 | }
|
|---|
| 35 | ]
|
|---|
| 36 | }
|
|---|
| 37 | },
|
|---|
| 38 | "required": ["source"]
|
|---|
| 39 | },
|
|---|
| 40 | "VirtualModuleContent": {
|
|---|
| 41 | "description": "A virtual module can be a string, a function, or a VirtualModule object.",
|
|---|
| 42 | "anyOf": [
|
|---|
| 43 | {
|
|---|
| 44 | "type": "string"
|
|---|
| 45 | },
|
|---|
| 46 | {
|
|---|
| 47 | "instanceof": "Function",
|
|---|
| 48 | "tsType": "import('../../../lib/schemes/VirtualUrlPlugin').SourceFn"
|
|---|
| 49 | },
|
|---|
| 50 | {
|
|---|
| 51 | "$ref": "#/definitions/VirtualModule"
|
|---|
| 52 | }
|
|---|
| 53 | ]
|
|---|
| 54 | },
|
|---|
| 55 | "VirtualUrlOptions": {
|
|---|
| 56 | "description": "Options for building virtual resources.",
|
|---|
| 57 | "type": "object",
|
|---|
| 58 | "additionalProperties": false,
|
|---|
| 59 | "properties": {
|
|---|
| 60 | "context": {
|
|---|
| 61 | "description": "The default context for virtual modules. A string path. Defaults to 'auto', which will try to resolve the context from the module id.",
|
|---|
| 62 | "type": "string"
|
|---|
| 63 | },
|
|---|
| 64 | "modules": {
|
|---|
| 65 | "description": "The virtual modules configuration.",
|
|---|
| 66 | "type": "object",
|
|---|
| 67 | "additionalProperties": {
|
|---|
| 68 | "$ref": "#/definitions/VirtualModuleContent"
|
|---|
| 69 | }
|
|---|
| 70 | },
|
|---|
| 71 | "scheme": {
|
|---|
| 72 | "description": "The URL scheme to use for virtual resources.",
|
|---|
| 73 | "type": "string"
|
|---|
| 74 | }
|
|---|
| 75 | },
|
|---|
| 76 | "required": ["modules"]
|
|---|
| 77 | }
|
|---|
| 78 | },
|
|---|
| 79 | "title": "VirtualUrlPluginOptions",
|
|---|
| 80 | "oneOf": [
|
|---|
| 81 | {
|
|---|
| 82 | "$ref": "#/definitions/VirtualUrlOptions"
|
|---|
| 83 | }
|
|---|
| 84 | ]
|
|---|
| 85 | }
|
|---|