File tree 1 file changed +1
-9
lines changed
1 file changed +1
-9
lines changed Original file line number Diff line number Diff line change @@ -130,9 +130,6 @@ export default defineNuxtModule<ModuleOptions>({
130
130
}
131
131
addImportsDir ( [
132
132
resolve ( './runtime/composables' ) ,
133
- // auto-imports aren't working without this for some reason
134
- // TODO find solution as we're double-registering
135
- resolve ( './runtime/registry' ) ,
136
133
] )
137
134
138
135
addComponentsDir ( {
@@ -146,12 +143,7 @@ export default defineNuxtModule<ModuleOptions>({
146
143
// @ts -expect-error nuxi prepare is broken to generate these types, possibly because of the runtime path
147
144
await nuxt . hooks . callHook ( 'scripts:registry' , registryScripts )
148
145
const registryScriptsWithImport = registryScripts . filter ( i => ! ! i . import ?. name ) as Required < RegistryScript > [ ]
149
- addImports ( registryScriptsWithImport . map ( ( i ) => {
150
- return {
151
- priority : - 1 ,
152
- ...i . import ,
153
- }
154
- } ) )
146
+ addImports ( registryScriptsWithImport . map ( i => i . import ) )
155
147
156
148
// compare the registryScripts to the original registry to find new scripts
157
149
const newScripts = registryScriptsWithImport . filter ( i => ! scripts . some ( r => r . import ?. name === i . import . name ) )
You can’t perform that action at this time.
0 commit comments