Skip to content

Commit

Permalink
fix: Fix bundling for static build
Browse files Browse the repository at this point in the history
  • Loading branch information
3y3 committed Nov 1, 2024
1 parent b8d06e0 commit 858de62
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/plugin/transform.ts
Original file line number Diff line number Diff line change
Expand Up @@ -81,13 +81,15 @@ export function transform(options: Partial<PluginOptions> = {}) {
runtime = '_assets/mermaid-extension.js',
classes = 'yfm-mermaid',
bundle = true,
onBundle,
} = options;

const plugin: MarkdownItPluginCb<{output: string}> = function (md: MarkdownIt, {output = '.'}) {
registerTransforms(md, {
classes,
runtime,
bundle,
onBundle,
output,
updateTokens: true,
});
Expand Down

0 comments on commit 858de62

Please sign in to comment.