Skip to content

Commit

Permalink
fix: never reassigned optionalComponents
Browse files Browse the repository at this point in the history
  • Loading branch information
modbender committed Dec 8, 2023
1 parent 474be95 commit 282f255
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,8 @@ export default defineNuxtModule<ModuleOptions>({
optionalImports = [...optionalImports, ...allImports.lowlightImports];
}

optionalComponents = [...optionalComponents];

for (const obj of optionalImports) {
addImports({
as: `${options.prefix}${obj.name}`,
Expand Down

0 comments on commit 282f255

Please sign in to comment.