Skip to content

Commit

Permalink
fix: remove duplicated virtual-module plugin from ssr-vue config
Browse files Browse the repository at this point in the history
  • Loading branch information
iamandrewluca authored Jun 28, 2022
1 parent e5a39cc commit ac8f5b9
Showing 1 changed file with 0 additions and 17 deletions.
17 changes: 0 additions & 17 deletions playground/ssr-vue/vite.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -45,23 +45,6 @@ export default defineConfig({
}
}
},
{
name: 'virtual-module',
resolveId(id) {
if (id === virtualFile) {
return virtualId
} else if (id === nestedVirtualFile) {
return nestedVirtualId
}
},
load(id) {
if (id === virtualId) {
return `export { msg } from "@nested-virtual-file";`
} else if (id === nestedVirtualId) {
return `export const msg = "[success] from conventional virtual file"`
}
}
},
// Example of a plugin that injects a helper from a virtual module that can
// be used in renderBuiltUrl
(function () {
Expand Down

0 comments on commit ac8f5b9

Please sign in to comment.