We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
runtimeModuleName
3.4.21
No
import { compileScript, parse } from "vue/compiler-sfc"; const { descriptor } = parse(`<script setup lang="ts"> console.log(1); </script>`); const result = compileScript(descriptor, { id: descriptor.filename, templateOptions: { compilerOptions: { runtimeModuleName: "npm:vue", }, }, }); console.log(result.content);
The output will be overwritten with the specified specifier.
The output will look like this:
import { defineComponent as _defineComponent } from 'vue' export default /*#__PURE__*/_defineComponent({ setup(__props, { expose: __expose }) { __expose(); console.log(1); ...
No response
Perhaps the following code needs to be modified:
core/packages/compiler-sfc/src/compileScript.ts
Lines 992 to 995 in f66a75e
The text was updated successfully, but these errors were encountered:
fix(compiler-sfc): use options module name if options provide runtime…
6965652
…ModuleName options close vuejs#10454
e76d743
…ModuleName options (#10457) close #10454
ab7d684
…ModuleName options (vuejs#10457) close vuejs#10454
Successfully merging a pull request may close this issue.
Vue version
3.4.21
Link to minimal reproduction
No
Steps to reproduce
What is expected?
The output will be overwritten with the specified specifier.
What is actually happening?
The output will look like this:
System Info
No response
Any additional comments?
Perhaps the following code needs to be modified:
core/packages/compiler-sfc/src/compileScript.ts
Lines 992 to 995 in f66a75e
The text was updated successfully, but these errors were encountered: