Skip to content

Commit 3163bad

Browse files
authored
fix: npm-mode registry scripts stored at $$scripts instead of $scripts (#623)
1 parent 3ab8448 commit 3163bad

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/templates.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -214,7 +214,7 @@ export function templatePlugin(config: Partial<ModuleOptions>, registry: Require
214214
` parallel: true,`,
215215
` setup() {`,
216216
...inits.map(i => ` ${i}`),
217-
` return { provide: { $scripts: { ${[...Object.keys(config.globals || {}), ...resolvedRegistryKeys].join(', ')} } } }`,
217+
` return { provide: { scripts: { ${[...Object.keys(config.globals || {}), ...resolvedRegistryKeys].join(', ')} } } }`,
218218
` }`,
219219
`})`,
220220
].join('\n')

0 commit comments

Comments
 (0)