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
⚠️ IMPORTANT ⚠️ Please check the following list before proceeding. If you ignore this issue template, your issue will be directly closed.
Incorrect code transform by vite.ssrLoadModule.
vite.ssrLoadModule
Test:
import { ssrTransform } from 'vite/src/node/ssr/ssrTransform' ;(async () => { console.log('// Code 1:') const result = await ssrTransform(` import {createApp} from 'vue'; export {createApp} `) console.log(result.code) console.log('\n// Code 2:') const result2 = await ssrTransform(` export * from 'vue' `) console.log(result2.code) })()
Output:
// Code 1: const __vite_ssr_import_0__ = __vite_ssr_import__("vue") __vite_ssr_import_0__.createApp Object.defineProperty(__vite_ssr_exports__, "createApp", { get(){ return createApp }}) // Code 2: const __vite_ssr_import_0__ = __vite_ssr_import__("vue") export * from 'vue' __vite_ssr_exportAll__(__vite_ssr_import_0__)
vite
vite build
--debug
The text was updated successfully, but these errors were encountered:
f22ddbd
No branches or pull requests
Describe the bug
Incorrect code transform by
vite.ssrLoadModule
.Reproduction
Test:
Output:
System Info
vite
version: 2.0.0-beta.37Logs (Optional if provided reproduction)
vite
orvite build
with the--debug
flag.The text was updated successfully, but these errors were encountered: