You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
*Defined in [index.ts:749](https://github.com/FranckFreiburger/vue3-sfc-loader/blob/72c1539/src/index.ts#L749)*
54
+
*Defined in [index.ts:750](https://github.com/FranckFreiburger/vue3-sfc-loader/blob/547328e/src/index.ts#L750)*
55
55
56
56
This is the main function.
57
57
@@ -62,7 +62,7 @@ Name | Type | Default value | Description |
62
62
`path` | string | - | The path of the `.vue` file. If path is not a path (eg. an string ID), your [getFile](interfaces/options.md#getfile) function must return a [File](README.md#file) object. |
63
63
`options` | [Options](interfaces/options.md) | throwNotDefined('options') | The options |
*Defined in [index.ts:153](https://github.com/FranckFreiburger/vue3-sfc-loader/blob/72c1539/src/index.ts#L153)*
48
+
*Defined in [index.ts:153](https://github.com/FranckFreiburger/vue3-sfc-loader/blob/547328e/src/index.ts#L153)*
49
49
50
50
Additional module type handlers. see [ModuleHandler](modulehandler.md)
51
51
@@ -55,7 +55,7 @@ ___
55
55
56
56
• `Optional`**compiledCache**: [Cache](cache.md)
57
57
58
-
*Defined in [index.ts:193](https://github.com/FranckFreiburger/vue3-sfc-loader/blob/72c1539/src/index.ts#L193)*
58
+
*Defined in [index.ts:193](https://github.com/FranckFreiburger/vue3-sfc-loader/blob/547328e/src/index.ts#L193)*
59
59
60
60
[get](cache.md#get)() and [set](cache.md#set)() functions of this object are called when the lib needs to save or load already compiled code. get and set functions must return a `Promise` (or can be `async`).
61
61
Since compilation consume a lot of CPU, is is always a good idea to provide this object.
*Defined in [index.ts:211](https://github.com/FranckFreiburger/vue3-sfc-loader/blob/72c1539/src/index.ts#L211)*
215
+
*Defined in [index.ts:211](https://github.com/FranckFreiburger/vue3-sfc-loader/blob/547328e/src/index.ts#L211)*
216
216
217
217
Called by the library when there is somthing to log (eg. scripts compilation errors, template compilation errors, template compilation tips, style compilation errors, ...)
0 commit comments