Skip to content

Commit 8624923

Browse files
committed
fix: use free path for virtual plugin template
Related to nuxt/nuxt#29021
1 parent 84c6c4c commit 8624923

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/module.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -189,7 +189,7 @@ ${newScripts.map((i) => {
189189
if (Object.keys(config.globals || {}).length || Object.keys(config.registry || {}).length) {
190190
// create a virtual plugin
191191
addPluginTemplate({
192-
filename: `modules/${name!.replace('/', '-')}.mjs`,
192+
filename: `modules/${name!.replace('/', '-')}/plugin.mjs`,
193193
getContents() {
194194
return templatePlugin(config, registryScriptsWithImport)
195195
},

0 commit comments

Comments
 (0)