Skip to content

Commit 02274fb

Browse files
authored
fix: import nuxt composables from #imports (#75)
1 parent 197b6ae commit 02274fb

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/core/injection.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ export function resolveInjection (config: Options) {
88
return {
99
filename: `${libraryName}-injection.plugin.mjs`,
1010
getContents: () => {
11-
return `import { defineNuxtPlugin } from '#app';
11+
return `import { defineNuxtPlugin } from '#imports';
1212
import { ID_INJECTION_KEY } from 'element-plus';
1313
1414
export default defineNuxtPlugin(nuxtApp => {

src/core/teleports.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ export function resolveTeleports (config: Options) {
88
return {
99
filename: `${libraryName}-teleports.plugin.mjs`,
1010
getContents: () => {
11-
return `import { defineNuxtPlugin } from '#app'
11+
return `import { defineNuxtPlugin } from '#imports'
1212
1313
export default defineNuxtPlugin((nuxtApp) => {
1414
nuxtApp.hook('app:rendered', (ctx) => {

0 commit comments

Comments
 (0)