Skip to content

Commit

Permalink
fix(nuxt): useNuxtApp import
Browse files Browse the repository at this point in the history
  • Loading branch information
undermoonn committed Oct 20, 2023
1 parent 353bcf2 commit 5484b23
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
6 changes: 3 additions & 3 deletions packages/nuxt/build.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@ export default defineBuildConfig({
declaration: true,
rollup: {
esbuild: {
minify: true,
target: 'es6'
minify: false
},
emitCJS: true
}
},
failOnWarn: false
})
3 changes: 2 additions & 1 deletion packages/nuxt/src/useAsyncDataShakeTransform.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import { useNuxtApp } from 'nuxt/dist/app'
// @ts-ignore
import { useNuxtApp } from '#app'
import { shake } from '@object-shake/core'
import { type _Transform } from 'nuxt/dist/app/composables/asyncData'

Expand Down

0 comments on commit 5484b23

Please sign in to comment.