Skip to content

Commit

Permalink
fix: collect wrong dep result for md in mfsu (#2104)
Browse files Browse the repository at this point in the history
  • Loading branch information
Jinbao1001 committed May 7, 2024
1 parent 77f1f07 commit ff0cfce
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/features/compile/babelLoaderCustomize.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,9 @@ export default function babelLoaderCustomize() {
// make meta filename is different with source file, to avoid collect wrong deps in MFSU
if (
config.options.filename &&
context.resourceQuery.includes('type=meta')
['type=demo', 'type=frontmatter', 'type=demo-index', 'type=text'].some(
(v) => context.resourceQuery.includes(v),
)
) {
config.options.filename += context.resourceQuery;
}
Expand Down

0 comments on commit ff0cfce

Please sign in to comment.