File tree 1 file changed +11
-2
lines changed
1 file changed +11
-2
lines changed Original file line number Diff line number Diff line change @@ -85,8 +85,6 @@ export default defineNuxtModule<ModuleOptions>({
85
85
86
86
if ( ! ! options . lowlight && options . lowlight !== false ) {
87
87
optionalImports = [ ...optionalImports , ...allImports . lowlightImports ] ;
88
- } else {
89
- optionalImports = [ ...optionalImports , ...allImports . defaultCodeImports ] ;
90
88
}
91
89
92
90
optionalComponents = [ ...optionalComponents ] ;
@@ -101,6 +99,17 @@ export default defineNuxtModule<ModuleOptions>({
101
99
transpileModules . add ( obj . path ) ;
102
100
}
103
101
102
+ for ( const obj of optionalComponents ) {
103
+ addComponent ( {
104
+ mode : "client" ,
105
+ name : `${ options . prefix } ${ obj . name } ` ,
106
+ export : obj . name ,
107
+ filePath : obj . path ,
108
+ // _internal_install: obj.path,
109
+ } ) ;
110
+ transpileModules . add ( obj . path ) ;
111
+ }
112
+
104
113
nuxt . options . build . transpile = [
105
114
...nuxt . options . build . transpile ,
106
115
...transpileModules ,
You can’t perform that action at this time.
0 commit comments