Skip to content

Commit b90b6b6

Browse files
committed
chore: use experimental bundler module resolution (#498)
1 parent 9d83174 commit b90b6b6

File tree

3 files changed

+4
-5
lines changed

3 files changed

+4
-5
lines changed

.nuxtrc

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
# enable TypeScript bundler module resolution - https://www.typescriptlang.org/docs/handbook/modules/reference.html#bundler
2+
experimental.typescriptBundlerResolution=true

src/parts/pwa.ts

+2
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,10 @@ import type { NuxtConfig, NuxtOptions } from '@nuxt/schema'
44
export const setupPWA = async () => {
55
const nuxt = useNuxt()
66

7+
// @ts-expect-error TODO: migrate to @vite-pwa/nuxt
78
nuxt.options.pwa = nuxt.options.pwa || ({} as NuxtOptions['pwa'])
89

10+
// @ts-expect-error TODO: migrate to @vite-pwa/nuxt
911
const pwaOptions: NuxtConfig['pwa'] = nuxt.options.pwa
1012

1113
// Generate splash screens for iOS

tsconfig.json

-5
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,5 @@
11
{
22
"extends": "./.nuxt/tsconfig.json",
3-
"compilerOptions": {
4-
"types": [
5-
"@kevinmarrec/nuxt-pwa"
6-
]
7-
},
83
"exclude": [
94
"docs",
105
"playground"

0 commit comments

Comments
 (0)