From 500818f806556d56c80f4cc2dcb1985c0e2ca9c0 Mon Sep 17 00:00:00 2001 From: Daniel Roe Date: Thu, 21 Dec 2023 13:20:41 +0000 Subject: [PATCH 1/2] chore: test bundler module resolution --- .nuxtrc | 2 ++ 1 file changed, 2 insertions(+) create mode 100644 .nuxtrc diff --git a/.nuxtrc b/.nuxtrc new file mode 100644 index 00000000..0c79f29a --- /dev/null +++ b/.nuxtrc @@ -0,0 +1,2 @@ +# enable TypeScript bundler module resolution - https://www.typescriptlang.org/docs/handbook/modules/reference.html#bundler +experimental.typescriptBundlerResolution=true \ No newline at end of file From d8bc82923189086fb011a3c25668f48c10e8eb25 Mon Sep 17 00:00:00 2001 From: Daniel Roe Date: Tue, 9 Jan 2024 10:36:20 +0000 Subject: [PATCH 2/2] chore: remove pwa types --- src/parts/pwa.ts | 2 ++ tsconfig.json | 5 ----- 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/src/parts/pwa.ts b/src/parts/pwa.ts index 186736ed..ed114d94 100644 --- a/src/parts/pwa.ts +++ b/src/parts/pwa.ts @@ -4,8 +4,10 @@ import type { NuxtConfig, NuxtOptions } from '@nuxt/schema' export const setupPWA = async () => { const nuxt = useNuxt() + // @ts-expect-error TODO: migrate to @vite-pwa/nuxt nuxt.options.pwa = nuxt.options.pwa || ({} as NuxtOptions['pwa']) + // @ts-expect-error TODO: migrate to @vite-pwa/nuxt const pwaOptions: NuxtConfig['pwa'] = nuxt.options.pwa // Generate splash screens for iOS diff --git a/tsconfig.json b/tsconfig.json index 39ca33ce..461d9164 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -1,10 +1,5 @@ { "extends": "./.nuxt/tsconfig.json", - "compilerOptions": { - "types": [ - "@kevinmarrec/nuxt-pwa" - ] - }, "exclude": [ "docs", "playground"