mirror of
https://github.com/nuxt/nuxt.git
synced 2025-01-18 09:25:54 +00:00
build(schema): use new inlineDependencies
option
This commit is contained in:
parent
c780a6e2e2
commit
a7db6d9697
@ -20,17 +20,9 @@ export default defineBuildConfig({
|
||||
'src/index',
|
||||
'src/builder-env',
|
||||
],
|
||||
hooks: {
|
||||
'rollup:options' (ctx, options) {
|
||||
ctx.options.rollup.dts.respectExternal = false
|
||||
const isExternal = options.external! as (id: string, importer?: string, isResolved?: boolean) => boolean
|
||||
options.external = (source, importer, isResolved) => {
|
||||
if (source === 'untyped' || source === 'knitwork') {
|
||||
return false
|
||||
}
|
||||
return isExternal(source, importer, isResolved)
|
||||
}
|
||||
},
|
||||
rollup: {
|
||||
dts: { respectExternal: false },
|
||||
inlineDependencies: ['untyped', 'knitwork'],
|
||||
},
|
||||
externals: [
|
||||
// Type imports
|
||||
|
Loading…
Reference in New Issue
Block a user