Skip to content

Commit

Permalink
fix: import nuxt composables from #imports (#75)
Browse files Browse the repository at this point in the history
  • Loading branch information
tolking authored Nov 18, 2023
1 parent 197b6ae commit 02274fb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/core/injection.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ export function resolveInjection (config: Options) {
return {
filename: `${libraryName}-injection.plugin.mjs`,
getContents: () => {
return `import { defineNuxtPlugin } from '#app';
return `import { defineNuxtPlugin } from '#imports';
import { ID_INJECTION_KEY } from 'element-plus';
export default defineNuxtPlugin(nuxtApp => {
Expand Down
2 changes: 1 addition & 1 deletion src/core/teleports.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ export function resolveTeleports (config: Options) {
return {
filename: `${libraryName}-teleports.plugin.mjs`,
getContents: () => {
return `import { defineNuxtPlugin } from '#app'
return `import { defineNuxtPlugin } from '#imports'
export default defineNuxtPlugin((nuxtApp) => {
nuxtApp.hook('app:rendered', (ctx) => {
Expand Down

0 comments on commit 02274fb

Please sign in to comment.