Nuxt/test/fixtures/basic/nuxt.config.ts
Anthony Fu f69126e8f4
feat: support reactivity transform (#3737)
Co-authored-by: pooya parsa <pyapar@gmail.com>
Co-authored-by: Daniel Roe <daniel@roe.dev>
2022-03-17 23:17:59 +01:00

30 lines
688 B
TypeScript

import { defineNuxtConfig } from 'nuxt3'
import { addComponent } from '@nuxt/kit'
export default defineNuxtConfig({
buildDir: process.env.NITRO_BUILD_DIR,
builder: process.env.TEST_WITH_WEBPACK ? 'webpack' : 'vite',
nitro: {
output: { dir: process.env.NITRO_OUTPUT_DIR }
},
publicRuntimeConfig: {
testConfig: 123
},
privateRuntimeConfig: {
privateConfig: 'secret_key'
},
modules: ['~/modules/example'],
hooks: {
'modules:done' () {
addComponent({
name: 'CustomComponent',
export: 'namedExport',
filePath: '~/other-components-folder/named-export'
})
}
},
experimental: {
reactivityTransform: true
}
})