fix(nuxi): set allowSyntheticDefaultImports (#1827)

This commit is contained in:
Daniel Roe 2021-11-10 16:39:19 +00:00 committed by GitHub
parent f2d4c65edb
commit 89aa7aa303
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -17,6 +17,7 @@ export const writeTypes = async (nuxt: Nuxt) => {
allowJs: true, allowJs: true,
noEmit: true, noEmit: true,
resolveJsonModule: true, resolveJsonModule: true,
allowSyntheticDefaultImports: true,
types: ['node'], types: ['node'],
baseUrl: relative(nuxt.options.buildDir, nuxt.options.rootDir), baseUrl: relative(nuxt.options.buildDir, nuxt.options.rootDir),
paths: {} paths: {}