Skip to content

Commit

Permalink
fix: use free path for virtual plugin template
Browse files Browse the repository at this point in the history
Related to nuxt/nuxt#29021
  • Loading branch information
harlan-zw committed Sep 16, 2024
1 parent 84c6c4c commit 8624923
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,7 @@ ${newScripts.map((i) => {
if (Object.keys(config.globals || {}).length || Object.keys(config.registry || {}).length) {
// create a virtual plugin
addPluginTemplate({
filename: `modules/${name!.replace('/', '-')}.mjs`,
filename: `modules/${name!.replace('/', '-')}/plugin.mjs`,
getContents() {
return templatePlugin(config, registryScriptsWithImport)
},
Expand Down

0 comments on commit 8624923

Please sign in to comment.