Closed zeyongTsai closed 6 months ago
I think here using AST only replaces the import js/ts
statements with export * from
, and skips over other statements that are unlikely to be exported and that are needed by qiankun's lifecycle.
if there is export * from
ahead of css, the resource query would add a used
parameter at the begin.
html-inline-proxy plugin's RegExp: htmlProxyRE matches failed. ( it should resolve css text inside style tag )
return {
name: 'vite:html-inline-proxy',
resolveId(id) {
if (htmlProxyRE.test(id)) {
return id
}
},
load(id) {
const proxyMatch = id.match(htmlProxyRE)
if (proxyMatch) {
const index = Number(proxyMatch[1])
const file = cleanUrl(id)
const url = file.replace(normalizePath(config.root), '')
const result = htmlProxyMap.get(config)!.get(url)?.[index]
if (result) {
return result
} else {
throw new Error(`No matching HTML proxy module found from ${id}`)
}
}
},
}
@zeyongTsai Thank you for your feedback! I will fix.
if index.html has style tag that has a css rule , output html will repeat html in sytle tag.
output
vite config
when I removed
qiankun:remain-exports
plugin,output normal.