fix(cli): allow non-existent experimental option

This commit is contained in:
Daniel Roe 2023-07-14 23:39:06 +01:00
parent 826f82a6da
commit 0643d4315b

View File

@ -17,7 +17,7 @@ export const writeTypes = async (nuxt: Nuxt) => {
jsx: 'preserve', jsx: 'preserve',
target: 'ESNext', target: 'ESNext',
module: 'ESNext', module: 'ESNext',
moduleResolution: nuxt.options.experimental.typescriptBundlerResolution ? 'Bundler' : 'Node', moduleResolution: nuxt.options.experimental?.typescriptBundlerResolution ? 'Bundler' : 'Node',
skipLibCheck: true, skipLibCheck: true,
strict: nuxt.options.typescript?.strict ?? true, strict: nuxt.options.typescript?.strict ?? true,
allowJs: true, allowJs: true,