Skip to content

Commit

Permalink
fix(runtime): allow to give instance of the remark plugin (#1466)
Browse files Browse the repository at this point in the history
  • Loading branch information
Atinux committed Aug 19, 2022
1 parent 5a64f46 commit 61c3032
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/runtime/transformers/markdown.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ async function importPlugins (plugins: Record<string, false | MarkdownPlugin> =
for (const [name, plugin] of Object.entries(plugins)) {
if (plugin) {
resolvedPlugins[name] = {
instance: await import(name).then(m => m.default || m),
instance: plugin.instance || await import(/* @vite-ignore */ name).then(m => m.default || m),
...plugin
}
} else {
Expand Down

0 comments on commit 61c3032

Please sign in to comment.