Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
feat: fix mdx transformation issue
  • Loading branch information
yusufyildirim committed Apr 7, 2025
commit af53cf27a6d09536ad9a745a5fe0b86ee0255192
2 changes: 2 additions & 0 deletions packages/ladle/lib/cli/vite-plugin/mdx-to-stories.js
Original file line number Diff line number Diff line change
Expand Up @@ -168,6 +168,8 @@ const prepare = async (code, filename, transformMdx = false) => {
: code;
const ast = getAst(inputCode, filename);
const output = await transformFromAstAsync(ast, inputCode, {
caller: { name: "metro", bundler: "metro", platform: "web" },
filename,
plugins: [transformPlugin],
});
let result = output?.code?.replace(
Expand Down