Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
zhangHongEn committed Nov 3, 2024
1 parent 4f43bc0 commit 1b16113
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/plugins/pluginAddEntry.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ const addEntry = ({
},
configResolved(config) {
viteConfig = config;
devEntryPath = config.base + devEntryPath.replace(/^\//, '');
devEntryPath = config.base + devEntryPath.replace(/\\\\?/g, '/').replace(/.+?\:([/\\])[/\\]?/, '$1').replace(/^\//, '')
},
configureServer(server) {
server.httpServer?.once?.('listening', () => {
Expand All @@ -50,6 +50,7 @@ const addEntry = ({
});
},
transformIndexHtml(c) {
console.log(" /testbase/C:/Users/Administrator/Desktop/vite/examples/vite-vite/vite-remote/node_modules/__mf__virtual/_mf_0_namespace_mf_1_viteViteRemote__H_A_I__hostAutoInit__H_A_I__.js")
return c.replace(
'<head>',
`<head><script type="module" src=${JSON.stringify(
Expand Down

0 comments on commit 1b16113

Please sign in to comment.