diff --git a/src/runtime/composables/useAnimation.ts b/src/runtime/composables/useAnimation.ts index 0fa8f31..6795ba7 100644 --- a/src/runtime/composables/useAnimation.ts +++ b/src/runtime/composables/useAnimation.ts @@ -4,9 +4,9 @@ * - useScrollAnimation * - useTimelineAnimation (WIP) */ -import { ref } from 'vue' import type { Ref } from 'vue' -import { nextTick, onBeforeUnmount, onMounted } from '#imports' + +import { nextTick, onBeforeUnmount, onMounted, ref } from '#imports' interface ScrollAnimationOptions { global?: boolean diff --git a/src/runtime/update.ts b/src/runtime/update.ts index d3a800a..fc92d52 100644 --- a/src/runtime/update.ts +++ b/src/runtime/update.ts @@ -4,7 +4,8 @@ export interface UpdateResult { } export const updateCheck = async () => { - const pkg = (await import('../../package.json')).default + const pkg = (await import('../../package.json', { assert: { type: 'json' } }) + ).default as { version: string } const version = pkg.version const https = await import('node:https') return new Promise((resolve) => { diff --git a/tsconfig.json b/tsconfig.json index ab9b2fb..9ca5f29 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -5,6 +5,9 @@ "node_modules", "playground", ], + "compilerOptions": { + "module": "esnext", + }, "include": [ "src/runtime/**/*" ]