2021-04-21 15:10:53 +00:00
|
|
|
import { defineBuildConfig } from 'unbuild'
|
2021-04-09 13:48:39 +00:00
|
|
|
|
2021-04-21 15:10:53 +00:00
|
|
|
export default defineBuildConfig({
|
2021-09-21 17:07:24 +00:00
|
|
|
declaration: true,
|
2021-12-14 15:46:05 +00:00
|
|
|
rollup: {
|
|
|
|
inlineDependencies: true,
|
|
|
|
cjsBridge: true
|
|
|
|
},
|
2021-04-09 13:48:39 +00:00
|
|
|
entries: [
|
2022-03-17 18:49:59 +00:00
|
|
|
'src/cli',
|
2021-04-09 13:48:39 +00:00
|
|
|
'src/index'
|
|
|
|
],
|
|
|
|
externals: [
|
2021-04-16 20:05:49 +00:00
|
|
|
'@nuxt/kit',
|
2021-11-21 16:14:46 +00:00
|
|
|
'@nuxt/schema',
|
2022-03-16 12:34:27 +00:00
|
|
|
'@nuxt/test-utils',
|
2021-11-21 16:14:46 +00:00
|
|
|
'fsevents',
|
|
|
|
// TODO: Fix rollup/unbuild issue
|
2022-03-16 12:34:27 +00:00
|
|
|
'node:url',
|
2021-11-21 16:14:46 +00:00
|
|
|
'node:buffer',
|
|
|
|
'node:path',
|
|
|
|
'node:child_process',
|
|
|
|
'node:process',
|
|
|
|
'node:path',
|
|
|
|
'node:os'
|
2021-04-09 13:48:39 +00:00
|
|
|
]
|
2021-04-21 15:10:53 +00:00
|
|
|
})
|