Skip to content

Commit

Permalink
fix(compiler-sfc): use options module name if options provide runtime…
Browse files Browse the repository at this point in the history
…ModuleName options

close vuejs#10454
  • Loading branch information
Doctor-wu committed Mar 5, 2024
1 parent f66a75e commit 6965652
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/compiler-sfc/src/compileScript.ts
Original file line number Diff line number Diff line change
Expand Up @@ -992,7 +992,9 @@ export function compileScript(
ctx.s.prepend(
`import { ${[...ctx.helperImports]
.map(h => `${h} as _${h}`)
.join(', ')} } from 'vue'\n`,
.join(
', ',
)} } from '${options.templateOptions?.compilerOptions?.runtimeModuleName || 'vue'}'\n`,
)
}

Expand Down

0 comments on commit 6965652

Please sign in to comment.