4545
4646Ƭ ** AbstractPath** : { toString: () => string }
4747
48- * Defined in [ types.ts:32] ( https://github.com/FranckFreiburger/vue3-sfc-loader/blob/9dfc5b1 /src/types.ts#L32 ) *
48+ * Defined in [ types.ts:32] ( https://github.com/FranckFreiburger/vue3-sfc-loader/blob/9111483 /src/types.ts#L32 ) *
4949
5050An abstract way to specify a path. It could be a simple string or a object like an URL. An AbstractPath must always be convertible to a string.
5151
6161
6262Ƭ ** Cache** : { get: (key: string) => Promise<string\> ; set: (key: string, value: string) => Promise<void\> }
6363
64- * Defined in [ types.ts:20] ( https://github.com/FranckFreiburger/vue3-sfc-loader/blob/9dfc5b1 /src/types.ts#L20 ) *
64+ * Defined in [ types.ts:20] ( https://github.com/FranckFreiburger/vue3-sfc-loader/blob/9111483 /src/types.ts#L20 ) *
6565
6666#### Type declaration:
6767
7676
7777Ƭ ** ContentData** : string \| ArrayBuffer
7878
79- * Defined in [ types.ts:71] ( https://github.com/FranckFreiburger/vue3-sfc-loader/blob/9dfc5b1 /src/types.ts#L71 ) *
79+ * Defined in [ types.ts:71] ( https://github.com/FranckFreiburger/vue3-sfc-loader/blob/9111483 /src/types.ts#L71 ) *
8080
8181___
8282
8383### CustomBlock
8484
8585Ƭ ** CustomBlock** : { attrs: Record<string, string \| true\> ; content: string ; type: string }
8686
87- * Defined in [ types.ts:109] ( https://github.com/FranckFreiburger/vue3-sfc-loader/blob/9dfc5b1 /src/types.ts#L109 ) *
87+ * Defined in [ types.ts:109] ( https://github.com/FranckFreiburger/vue3-sfc-loader/blob/9111483 /src/types.ts#L109 ) *
8888
8989A custom block
9090
102102
103103Ƭ ** CustomBlockCallback** : (component: [ ModuleExport] ( README.md#moduleexport ) ) => void
104104
105- * Defined in [ types.ts:103] ( https://github.com/FranckFreiburger/vue3-sfc-loader/blob/9dfc5b1 /src/types.ts#L103 ) *
105+ * Defined in [ types.ts:103] ( https://github.com/FranckFreiburger/vue3-sfc-loader/blob/9111483 /src/types.ts#L103 ) *
106106
107107CustomBlockCallback function type
108108
112112
113113Ƭ ** File** : { getContentData: (asBinary: Boolean) => Promise<[ ContentData] ( README.md#contentdata ) \> ; type: string }
114114
115- * Defined in [ types.ts:77] ( https://github.com/FranckFreiburger/vue3-sfc-loader/blob/9dfc5b1 /src/types.ts#L77 ) *
115+ * Defined in [ types.ts:77] ( https://github.com/FranckFreiburger/vue3-sfc-loader/blob/9111483 /src/types.ts#L77 ) *
116116
117117Represents a file content and the extension name.
118118
@@ -129,15 +129,15 @@ ___
129129
130130Ƭ ** LangProcessor** : (source: string, preprocessOptions?: any) => Promise<string\> \| string
131131
132- * Defined in [ types.ts:399] ( https://github.com/FranckFreiburger/vue3-sfc-loader/blob/9dfc5b1 /src/types.ts#L399 ) *
132+ * Defined in [ types.ts:399] ( https://github.com/FranckFreiburger/vue3-sfc-loader/blob/9111483 /src/types.ts#L399 ) *
133133
134134___
135135
136136### Module
137137
138138Ƭ ** Module** : { exports: [ ModuleExport] ( README.md#moduleexport ) }
139139
140- * Defined in [ types.ts:129] ( https://github.com/FranckFreiburger/vue3-sfc-loader/blob/9dfc5b1 /src/types.ts#L129 ) *
140+ * Defined in [ types.ts:129] ( https://github.com/FranckFreiburger/vue3-sfc-loader/blob/9111483 /src/types.ts#L129 ) *
141141
142142This just represents a loaded js module
143143
@@ -153,15 +153,15 @@ ___
153153
154154Ƭ ** ModuleCacheId** : string
155155
156- * Defined in [ types.ts:26] ( https://github.com/FranckFreiburger/vue3-sfc-loader/blob/9dfc5b1 /src/types.ts#L26 ) *
156+ * Defined in [ types.ts:26] ( https://github.com/FranckFreiburger/vue3-sfc-loader/blob/9111483 /src/types.ts#L26 ) *
157157
158158___
159159
160160### ModuleExport
161161
162162Ƭ ** ModuleExport** : {}
163163
164- * Defined in [ types.ts:123] ( https://github.com/FranckFreiburger/vue3-sfc-loader/blob/9dfc5b1 /src/types.ts#L123 ) *
164+ * Defined in [ types.ts:123] ( https://github.com/FranckFreiburger/vue3-sfc-loader/blob/9111483 /src/types.ts#L123 ) *
165165
166166This just represents a loaded js module exports
167167
171171
172172Ƭ ** ModuleHandler** : (type: string, getContentData: File[ \" getContentData\" ] , path: [ AbstractPath] ( README.md#abstractpath ) , options: [ Options] ( README.md#options ) ) => Promise<[ ModuleExport] ( README.md#moduleexport ) \| null\>
173173
174- * Defined in [ types.ts:68] ( https://github.com/FranckFreiburger/vue3-sfc-loader/blob/9dfc5b1 /src/types.ts#L68 ) *
174+ * Defined in [ types.ts:68] ( https://github.com/FranckFreiburger/vue3-sfc-loader/blob/9111483 /src/types.ts#L68 ) *
175175
176176Used by the library when it needs to handle a does not know how to handle a given file type (eg. ` .json ` files).
177177
196196
197197Ƭ **Options**: { additionalBabelParserPlugins?: babel\_ParserPlugin[] ; additionalBabelPlugins?: Record<string, any\> ; compiledCache?: [Cache](README.md#cache) ; delimiters?: [string, string] ; handleModule?: [ModuleHandler](README.md#modulehandler) ; moduleCache: Record<[ModuleCacheId](README.md#modulecacheid), LoadingType<[ModuleExport](README.md#moduleexport)\> \| [ModuleExport](README.md#moduleexport)\> ; pathResolve: [PathResolve](README.md#pathresolve) ; addStyle: (style: string, scopeId: string \| undefined) => void ; customBlockHandler?: (block: [CustomBlock](README.md#customblock), filename: [AbstractPath](README.md#abstractpath), options: [Options](README.md#options)) => Promise<[CustomBlockCallback](README.md#customblockcallback) \| undefined\> ; getFile: (path: [AbstractPath](README.md#abstractpath)) => Promise<[File](README.md#file) \| [ContentData](README.md#contentdata)\> ; getResource: (pathCx: [PathContext](README.md#pathcontext), options: [Options](README.md#options)) => [Resource](README.md#resource) ; loadModule?: (path: [AbstractPath](README.md#abstractpath), options: [Options](README.md#options)) => Promise<[ModuleExport](README.md#moduleexport) \| undefined\> ; log?: (type: string, ...data: any[]) => void }
198198
199- * Defined in [ types.ts:140] ( https://github.com/FranckFreiburger/vue3-sfc-loader/blob/9dfc5b1 /src/types.ts#L140 ) *
199+ * Defined in [ types.ts:140] ( https://github.com/FranckFreiburger/vue3-sfc-loader/blob/9111483 /src/types.ts#L140 ) *
200200
201201#### Type declaration:
202202
222222
223223Ƭ ** PathContext** : { refPath: [ AbstractPath] ( README.md#abstractpath ) ; relPath: [ AbstractPath] ( README.md#abstractpath ) }
224224
225- * Defined in [ types.ts:41] ( https://github.com/FranckFreiburger/vue3-sfc-loader/blob/9dfc5b1 /src/types.ts#L41 ) *
225+ * Defined in [ types.ts:41] ( https://github.com/FranckFreiburger/vue3-sfc-loader/blob/9111483 /src/types.ts#L41 ) *
226226
227227A PathContext represents a path (relPath) relative to an abolute path (refPath)
228228Note that relPath is not necessary relative, but it is, relPath is relative to refPath.
240240
241241Ƭ ** PathResolve** : (pathCx: [ PathContext] ( README.md#pathcontext ) ) => [ AbstractPath] ( README.md#abstractpath )
242242
243- * Defined in [ types.ts:50] ( https://github.com/FranckFreiburger/vue3-sfc-loader/blob/9dfc5b1 /src/types.ts#L50 ) *
243+ * Defined in [ types.ts:50] ( https://github.com/FranckFreiburger/vue3-sfc-loader/blob/9111483 /src/types.ts#L50 ) *
244244
245245relative to absolute module path resolution
246246
250250
251251Ƭ ** Resource** : { getContent: () => Promise<[ File] ( README.md#file ) \> ; id: [ ModuleCacheId] ( README.md#modulecacheid ) ; path: [ AbstractPath] ( README.md#abstractpath ) }
252252
253- * Defined in [ types.ts:88] ( https://github.com/FranckFreiburger/vue3-sfc-loader/blob/9dfc5b1 /src/types.ts#L88 ) *
253+ * Defined in [ types.ts:88] ( https://github.com/FranckFreiburger/vue3-sfc-loader/blob/9111483 /src/types.ts#L88 ) *
254254
255255Represents a resource.
256256
@@ -268,9 +268,9 @@ Name | Type | Description |
268268
269269• ` Const ` ** version** : string = process.env.VERSION
270270
271- * Defined in [ tools.ts:53] ( https://github.com/FranckFreiburger/vue3-sfc-loader/blob/9dfc5b1 /src/tools.ts#L53 ) *
271+ * Defined in [ tools.ts:53] ( https://github.com/FranckFreiburger/vue3-sfc-loader/blob/9111483 /src/tools.ts#L53 ) *
272272
273- * Defined in [ index.ts:26] ( https://github.com/FranckFreiburger/vue3-sfc-loader/blob/9dfc5b1 /src/index.ts#L26 ) *
273+ * Defined in [ index.ts:26] ( https://github.com/FranckFreiburger/vue3-sfc-loader/blob/9111483 /src/index.ts#L26 ) *
274274
275275the version of the library (process.env.VERSION is set by webpack, at compile-time)
276276
@@ -280,15 +280,15 @@ ___
280280
281281• ` Const ` ** vueVersion** : string
282282
283- * Defined in [ createSFCModule.ts:4] ( https://github.com/FranckFreiburger/vue3-sfc-loader/blob/9dfc5b1 /src/createSFCModule.ts#L4 ) *
283+ * Defined in [ createSFCModule.ts:4] ( https://github.com/FranckFreiburger/vue3-sfc-loader/blob/9111483 /src/createSFCModule.ts#L4 ) *
284284
285285## Functions
286286
287287### buildTemplateProcessor
288288
289289▸ ** buildTemplateProcessor** (` processor ` : [ LangProcessor] ( README.md#langprocessor ) ): object
290290
291- * Defined in [ index.ts:179] ( https://github.com/FranckFreiburger/vue3-sfc-loader/blob/9dfc5b1 /src/index.ts#L179 ) *
291+ * Defined in [ index.ts:179] ( https://github.com/FranckFreiburger/vue3-sfc-loader/blob/9111483 /src/index.ts#L179 ) *
292292
293293Convert a function to template processor interface (consolidate)
294294
310310
311311▸ ** createSFCModule** (` source ` : string, ` filename ` : [ AbstractPath] ( README.md#abstractpath ) , ` options ` : [ Options] ( README.md#options ) ): Promise<[ ModuleExport] ( README.md#moduleexport ) \>
312312
313- * Defined in [ createSFCModule.ts:3] ( https://github.com/FranckFreiburger/vue3-sfc-loader/blob/9dfc5b1 /src/createSFCModule.ts#L3 ) *
313+ * Defined in [ createSFCModule.ts:3] ( https://github.com/FranckFreiburger/vue3-sfc-loader/blob/9111483 /src/createSFCModule.ts#L3 ) *
314314
315315#### Parameters:
316316
328328
329329▸ ** defaultGetResource** (` pathCx ` : [ PathContext] ( README.md#pathcontext ) , ` options ` : [ Options] ( README.md#options ) ): [ Resource] ( README.md#resource )
330330
331- * Defined in [ index.ts:76] ( https://github.com/FranckFreiburger/vue3-sfc-loader/blob/9dfc5b1 /src/index.ts#L76 ) *
331+ * Defined in [ index.ts:76] ( https://github.com/FranckFreiburger/vue3-sfc-loader/blob/9111483 /src/index.ts#L76 ) *
332332
333333Default getResource implementation
334334by default, getContent() use the file extension as file type.
348348
349349▸ ** defaultHandleModule** (` type ` : string, ` getContentData ` : File[ \" getContentData\" ] , ` path ` : [ AbstractPath] ( README.md#abstractpath ) , ` options ` : [ Options] ( README.md#options ) ): Promise<[ ModuleExport] ( README.md#moduleexport ) \| null\>
350350
351- * Defined in [ tools.ts:372] ( https://github.com/FranckFreiburger/vue3-sfc-loader/blob/9dfc5b1 /src/tools.ts#L372 ) *
351+ * Defined in [ tools.ts:372] ( https://github.com/FranckFreiburger/vue3-sfc-loader/blob/9111483 /src/tools.ts#L372 ) *
352352
353353Default implementation of handleModule
354354
369369
370370▸ ` Const ` ** defaultPathResolve** (` __namedParameters ` : { refPath: [ AbstractPath] ( README.md#abstractpath ) ; relPath: [ AbstractPath] ( README.md#abstractpath ) }): string \| [ AbstractPath] ( README.md#abstractpath )
371371
372- * Defined in [ index.ts:53] ( https://github.com/FranckFreiburger/vue3-sfc-loader/blob/9dfc5b1 /src/index.ts#L53 ) *
372+ * Defined in [ index.ts:53] ( https://github.com/FranckFreiburger/vue3-sfc-loader/blob/9111483 /src/index.ts#L53 ) *
373373
374374Default resolve implementation
375375resolve() should handle 3 situations :
391391
392392▸ ** loadModule** (` path ` : [ AbstractPath] ( README.md#abstractpath ) , ` options? ` : [ Options] ( README.md#options ) ): Promise<[ ModuleExport] ( README.md#moduleexport ) \>
393393
394- * Defined in [ index.ts:152] ( https://github.com/FranckFreiburger/vue3-sfc-loader/blob/9dfc5b1 /src/index.ts#L152 ) *
394+ * Defined in [ index.ts:152] ( https://github.com/FranckFreiburger/vue3-sfc-loader/blob/9111483 /src/index.ts#L152 ) *
395395
396396This is the main function.
397397This function is intended to be used only to load the entry point of your application.
445445
446446▸ ** loadModuleInternal** (` pathCx ` : [ PathContext] ( README.md#pathcontext ) , ` options ` : [ Options] ( README.md#options ) ): Promise<[ ModuleExport] ( README.md#moduleexport ) \>
447447
448- * Defined in [ tools.ts:260] ( https://github.com/FranckFreiburger/vue3-sfc-loader/blob/9dfc5b1 /src/tools.ts#L260 ) *
448+ * Defined in [ tools.ts:260] ( https://github.com/FranckFreiburger/vue3-sfc-loader/blob/9111483 /src/tools.ts#L260 ) *
449449
450450#### Parameters:
451451
0 commit comments