Skip to content

Commit 53cfd5c

Browse files
fix(core): types: moduleCache is mandatory
1 parent 5c511a4 commit 53cfd5c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/types.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ export type Options = {
139139
/**
140140
* Initial cache that will contain resolved dependencies. All new modules go here.
141141
* `vue` must initially be contained in this object.
142-
* [[moduleCache]] is mandatory for the lib. If you do not provide it, the library will create one.
142+
* [[moduleCache]] is mandatory and should be shared between options objects used for you application (note that you can also pass the same options object through multiple loadModule calls)
143143
* It is recommended to provide a prototype-less object (`Object.create(null)`) to avoid potential conflict with `Object` properties (constructor, __proto__, hasOwnProperty, ...).
144144
​ *
145145
* See also [[options.loadModule]].
@@ -154,7 +154,7 @@ export type Options = {
154154
* ```
155155
*
156156
*/
157-
moduleCache?: Record<ModuleCacheId, LoadingType<ModuleExport> | ModuleExport>,
157+
moduleCache: Record<ModuleCacheId, LoadingType<ModuleExport> | ModuleExport>,
158158

159159

160160
/**

0 commit comments

Comments
 (0)