Nuxt/packages/nitro/build.config.ts

26 lines
569 B
TypeScript
Raw Normal View History

import { defineBuildConfig } from 'unbuild'
2021-04-09 13:48:39 +00:00
export default defineBuildConfig({
2021-04-09 13:48:39 +00:00
declaration: true,
emitCJS: false,
2021-04-09 13:48:39 +00:00
entries: [
'src/index',
{ input: 'src/runtime/', outDir: 'dist/runtime', format: 'esm' },
{ input: 'src/runtime/', outDir: 'dist/runtime', format: 'cjs', declaration: false }
2021-04-09 13:48:39 +00:00
],
dependencies: [
'@cloudflare/kv-asset-handler',
'@netlify/functions',
'@nuxt/devalue',
'connect',
'destr',
'ohmyfetch',
'ora',
'vue-bundle-renderer',
'vue-server-renderer'
],
externals: [
'@nuxt/schema'
2021-04-09 13:48:39 +00:00
]
})