4949
5050Ƭ ** AbstractPath** : { toString: () => string }
5151
52- * Defined in [ types.ts:32] ( https://github.com/FranckFreiburger/vue3-sfc-loader/blob/ff21419 /src/types.ts#L32 ) *
52+ * Defined in [ types.ts:32] ( https://github.com/FranckFreiburger/vue3-sfc-loader/blob/7d22827 /src/types.ts#L32 ) *
5353
5454An 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.
5555
6565
6666Ƭ ** Cache** : { get: (key: string) => Promise<string \| undefined\> ; set: (key: string, value: string) => Promise<void\> }
6767
68- * Defined in [ types.ts:20] ( https://github.com/FranckFreiburger/vue3-sfc-loader/blob/ff21419 /src/types.ts#L20 ) *
68+ * Defined in [ types.ts:20] ( https://github.com/FranckFreiburger/vue3-sfc-loader/blob/7d22827 /src/types.ts#L20 ) *
6969
7070#### Type declaration:
7171
8080
8181Ƭ ** ContentData** : string \| ArrayBuffer
8282
83- * Defined in [ types.ts:71] ( https://github.com/FranckFreiburger/vue3-sfc-loader/blob/ff21419 /src/types.ts#L71 ) *
83+ * Defined in [ types.ts:71] ( https://github.com/FranckFreiburger/vue3-sfc-loader/blob/7d22827 /src/types.ts#L71 ) *
8484
8585___
8686
8787### CustomBlock
8888
8989Ƭ ** CustomBlock** : { attrs: Record<string, string \| true\> ; content: string ; type: string }
9090
91- * Defined in [ types.ts:109] ( https://github.com/FranckFreiburger/vue3-sfc-loader/blob/ff21419 /src/types.ts#L109 ) *
91+ * Defined in [ types.ts:109] ( https://github.com/FranckFreiburger/vue3-sfc-loader/blob/7d22827 /src/types.ts#L109 ) *
9292
9393A custom block
9494
106106
107107Ƭ ** CustomBlockCallback** : (component: [ ModuleExport] ( README.md#moduleexport ) ) => void
108108
109- * Defined in [ types.ts:103] ( https://github.com/FranckFreiburger/vue3-sfc-loader/blob/ff21419 /src/types.ts#L103 ) *
109+ * Defined in [ types.ts:103] ( https://github.com/FranckFreiburger/vue3-sfc-loader/blob/7d22827 /src/types.ts#L103 ) *
110110
111111CustomBlockCallback function type
112112
116116
117117Ƭ ** File** : { getContentData: (asBinary: Boolean) => Promise<[ ContentData] ( README.md#contentdata ) \> ; type: string }
118118
119- * Defined in [ types.ts:77] ( https://github.com/FranckFreiburger/vue3-sfc-loader/blob/ff21419 /src/types.ts#L77 ) *
119+ * Defined in [ types.ts:77] ( https://github.com/FranckFreiburger/vue3-sfc-loader/blob/7d22827 /src/types.ts#L77 ) *
120120
121121Represents a file content and the extension name.
122122
@@ -133,15 +133,15 @@ ___
133133
134134Ƭ ** LangProcessor** : (source: string, preprocessOptions?: any) => Promise<string\> \| string
135135
136- * Defined in [ types.ts:429] ( https://github.com/FranckFreiburger/vue3-sfc-loader/blob/ff21419 /src/types.ts#L429 ) *
136+ * Defined in [ types.ts:429] ( https://github.com/FranckFreiburger/vue3-sfc-loader/blob/7d22827 /src/types.ts#L429 ) *
137137
138138___
139139
140140### Module
141141
142142Ƭ ** Module** : { exports: [ ModuleExport] ( README.md#moduleexport ) }
143143
144- * Defined in [ types.ts:128] ( https://github.com/FranckFreiburger/vue3-sfc-loader/blob/ff21419 /src/types.ts#L128 ) *
144+ * Defined in [ types.ts:128] ( https://github.com/FranckFreiburger/vue3-sfc-loader/blob/7d22827 /src/types.ts#L128 ) *
145145
146146This just represents a loaded js module
147147
@@ -157,15 +157,15 @@ ___
157157
158158Ƭ ** ModuleCacheId** : string
159159
160- * Defined in [ types.ts:26] ( https://github.com/FranckFreiburger/vue3-sfc-loader/blob/ff21419 /src/types.ts#L26 ) *
160+ * Defined in [ types.ts:26] ( https://github.com/FranckFreiburger/vue3-sfc-loader/blob/7d22827 /src/types.ts#L26 ) *
161161
162162___
163163
164164### ModuleExport
165165
166166Ƭ ** ModuleExport** : {} \| null
167167
168- * Defined in [ types.ts:123] ( https://github.com/FranckFreiburger/vue3-sfc-loader/blob/ff21419 /src/types.ts#L123 ) *
168+ * Defined in [ types.ts:123] ( https://github.com/FranckFreiburger/vue3-sfc-loader/blob/7d22827 /src/types.ts#L123 ) *
169169
170170This just represents a loaded js module exports
171171
175175
176176Ƭ ** ModuleHandler** : (type: string, getContentData: File[ \" getContentData\" ] , path: [ AbstractPath] ( README.md#abstractpath ) , options: [ Options] ( README.md#options ) ) => Promise<[ ModuleExport] ( README.md#moduleexport ) \| null\>
177177
178- * Defined in [ types.ts:68] ( https://github.com/FranckFreiburger/vue3-sfc-loader/blob/ff21419 /src/types.ts#L68 ) *
178+ * Defined in [ types.ts:68] ( https://github.com/FranckFreiburger/vue3-sfc-loader/blob/7d22827 /src/types.ts#L68 ) *
179179
180180Used by the library when it needs to handle a does not know how to handle a given file type (eg. ` .json ` files).
181181
200200
201201Ƭ **Options**: { additionalBabelParserPlugins?: babel\_ParserPlugin[] ; additionalBabelPlugins?: Record<string, any\> ; compiledCache?: [Cache](README.md#cache) ; delimiters?: [string, string] ; devMode?: boolean ; handleModule?: [ModuleHandler](README.md#modulehandler) ; isCustomElement: (tag: string) => boolean \| undefined ; moduleCache: Record<[ModuleCacheId](README.md#modulecacheid), LoadingType<[ModuleExport](README.md#moduleexport)\> \| [ModuleExport](README.md#moduleexport)\> ; pathResolve: [PathResolve](README.md#pathresolve) ; whitespace?: \"preserve\" \| \"condense\" ; addStyle: (style: string, scopeId: string \| undefined) => void ; createCJSModule: (refPath: [AbstractPath](README.md#abstractpath), source: string, options: [Options](README.md#options)) => [Module](README.md#module) ; 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 }
202202
203- * Defined in [ types.ts:139] ( https://github.com/FranckFreiburger/vue3-sfc-loader/blob/ff21419 /src/types.ts#L139 ) *
203+ * Defined in [ types.ts:139] ( https://github.com/FranckFreiburger/vue3-sfc-loader/blob/7d22827 /src/types.ts#L139 ) *
204204
205205#### Type declaration:
206206
230230
231231Ƭ ** PathContext** : { refPath: [ AbstractPath] ( README.md#abstractpath ) \| undefined ; relPath: [ AbstractPath] ( README.md#abstractpath ) }
232232
233- * Defined in [ types.ts:41] ( https://github.com/FranckFreiburger/vue3-sfc-loader/blob/ff21419 /src/types.ts#L41 ) *
233+ * Defined in [ types.ts:41] ( https://github.com/FranckFreiburger/vue3-sfc-loader/blob/7d22827 /src/types.ts#L41 ) *
234234
235235A PathContext represents a path (relPath) relative to an abolute path (refPath)
236236Note that relPath is not necessary relative, but when it is, relPath is relative to refPath.
248248
249249Ƭ ** PathResolve** : (pathCx: [ PathContext] ( README.md#pathcontext ) ) => [ AbstractPath] ( README.md#abstractpath )
250250
251- * Defined in [ types.ts:50] ( https://github.com/FranckFreiburger/vue3-sfc-loader/blob/ff21419 /src/types.ts#L50 ) *
251+ * Defined in [ types.ts:50] ( https://github.com/FranckFreiburger/vue3-sfc-loader/blob/7d22827 /src/types.ts#L50 ) *
252252
253253relative to absolute module path resolution
254254
258258
259259Ƭ ** Resource** : { getContent: () => Promise<[ File] ( README.md#file ) \> ; id: [ ModuleCacheId] ( README.md#modulecacheid ) ; path: [ AbstractPath] ( README.md#abstractpath ) }
260260
261- * Defined in [ types.ts:88] ( https://github.com/FranckFreiburger/vue3-sfc-loader/blob/ff21419 /src/types.ts#L88 ) *
261+ * Defined in [ types.ts:88] ( https://github.com/FranckFreiburger/vue3-sfc-loader/blob/7d22827 /src/types.ts#L88 ) *
262262
263263Represents a resource.
264264
@@ -276,9 +276,9 @@ Name | Type | Description |
276276
277277• ` Const ` ** version** : string = process.env.VERSION as string
278278
279- * Defined in [ tools.ts:49] ( https://github.com/FranckFreiburger/vue3-sfc-loader/blob/ff21419 /src/tools.ts#L49 ) *
279+ * Defined in [ tools.ts:49] ( https://github.com/FranckFreiburger/vue3-sfc-loader/blob/7d22827 /src/tools.ts#L49 ) *
280280
281- * Defined in [ index.ts:26] ( https://github.com/FranckFreiburger/vue3-sfc-loader/blob/ff21419 /src/index.ts#L26 ) *
281+ * Defined in [ index.ts:26] ( https://github.com/FranckFreiburger/vue3-sfc-loader/blob/7d22827 /src/index.ts#L26 ) *
282282
283283the version of the library (process.env.VERSION is set by webpack, at compile-time)
284284
288288
289289• ` Const ` ** vueVersion** : string = process.env.VUE\_ VERSION as string
290290
291- * Defined in [ index.ts:32] ( https://github.com/FranckFreiburger/vue3-sfc-loader/blob/ff21419 /src/index.ts#L32 ) *
291+ * Defined in [ index.ts:32] ( https://github.com/FranckFreiburger/vue3-sfc-loader/blob/7d22827 /src/index.ts#L32 ) *
292292
293293the version of Vue that is expected by the library
294294
@@ -298,7 +298,7 @@ the version of Vue that is expected by the library
298298
299299▸ ** buildTemplateProcessor** (` processor ` : [ LangProcessor] ( README.md#langprocessor ) ): object
300300
301- * Defined in [ index.ts:194] ( https://github.com/FranckFreiburger/vue3-sfc-loader/blob/ff21419 /src/index.ts#L194 ) *
301+ * Defined in [ index.ts:194] ( https://github.com/FranckFreiburger/vue3-sfc-loader/blob/7d22827 /src/index.ts#L194 ) *
302302
303303Convert a function to template processor interface (consolidate)
304304
320320
321321▸ ** createSFCModule** (` source ` : string, ` filename ` : [ AbstractPath] ( README.md#abstractpath ) , ` options ` : [ Options] ( README.md#options ) ): Promise<[ ModuleExport] ( README.md#moduleexport ) \>
322322
323- * Defined in [ createSFCModule.ts:3] ( https://github.com/FranckFreiburger/vue3-sfc-loader/blob/ff21419 /src/createSFCModule.ts#L3 ) *
323+ * Defined in [ createSFCModule.ts:3] ( https://github.com/FranckFreiburger/vue3-sfc-loader/blob/7d22827 /src/createSFCModule.ts#L3 ) *
324324
325325#### Parameters:
326326
338338
339339▸ ** defaultGetResource** (` pathCx ` : [ PathContext] ( README.md#pathcontext ) , ` options ` : [ Options] ( README.md#options ) ): [ Resource] ( README.md#resource )
340340
341- * Defined in [ index.ts:74] ( https://github.com/FranckFreiburger/vue3-sfc-loader/blob/ff21419 /src/index.ts#L74 ) *
341+ * Defined in [ index.ts:74] ( https://github.com/FranckFreiburger/vue3-sfc-loader/blob/7d22827 /src/index.ts#L74 ) *
342342
343343Default getResource implementation
344344by default, getContent() use the file extension as file type.
358358
359359▸ ** defaultHandleModule** (` type ` : string, ` getContentData ` : File[ \" getContentData\" ] , ` path ` : [ AbstractPath] ( README.md#abstractpath ) , ` options ` : [ Options] ( README.md#options ) ): Promise<[ ModuleExport] ( README.md#moduleexport ) \| undefined\>
360360
361- * Defined in [ tools.ts:399] ( https://github.com/FranckFreiburger/vue3-sfc-loader/blob/ff21419 /src/tools.ts#L399 ) *
361+ * Defined in [ tools.ts:399] ( https://github.com/FranckFreiburger/vue3-sfc-loader/blob/7d22827 /src/tools.ts#L399 ) *
362362
363363Default implementation of handleModule
364364
379379
380380▸ ` Const ` ** defaultPathResolve** (` __namedParameters ` : { refPath: [ AbstractPath] ( README.md#abstractpath ) ; relPath: [ AbstractPath] ( README.md#abstractpath ) }): string \| [ AbstractPath] ( README.md#abstractpath )
381381
382- * Defined in [ index.ts:51] ( https://github.com/FranckFreiburger/vue3-sfc-loader/blob/ff21419 /src/index.ts#L51 ) *
382+ * Defined in [ index.ts:51] ( https://github.com/FranckFreiburger/vue3-sfc-loader/blob/7d22827 /src/index.ts#L51 ) *
383383
384384Default resolve implementation
385385resolve() should handle 3 situations :
401401
402402▸ ** loadModule** (` path ` : [ AbstractPath] ( README.md#abstractpath ) , ` options? ` : [ Options] ( README.md#options ) ): Promise<[ ModuleExport] ( README.md#moduleexport ) \>
403403
404- * Defined in [ index.ts:155] ( https://github.com/FranckFreiburger/vue3-sfc-loader/blob/ff21419 /src/index.ts#L155 ) *
404+ * Defined in [ index.ts:155] ( https://github.com/FranckFreiburger/vue3-sfc-loader/blob/7d22827 /src/index.ts#L155 ) *
405405
406406This is the main function.
407407This function is intended to be used only to load the entry point of your application.
455455
456456▸ ** loadModuleInternal** (` pathCx ` : [ PathContext] ( README.md#pathcontext ) , ` options ` : [ Options] ( README.md#options ) ): Promise<[ ModuleExport] ( README.md#moduleexport ) \>
457457
458- * Defined in [ tools.ts:276] ( https://github.com/FranckFreiburger/vue3-sfc-loader/blob/ff21419 /src/tools.ts#L276 ) *
458+ * Defined in [ tools.ts:276] ( https://github.com/FranckFreiburger/vue3-sfc-loader/blob/7d22827 /src/tools.ts#L276 ) *
459459
460460#### Parameters:
461461
@@ -472,6 +472,6 @@ Name | Type |
472472
473473▪ ` Const ` ** targetBrowserBabelPlugins** : object
474474
475- * Defined in [ tools.ts:211] ( https://github.com/FranckFreiburger/vue3-sfc-loader/blob/ff21419 /src/tools.ts#L211 ) *
475+ * Defined in [ tools.ts:211] ( https://github.com/FranckFreiburger/vue3-sfc-loader/blob/7d22827 /src/tools.ts#L211 ) *
476476
477477#### Properties:
0 commit comments