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/index',
|
||||||
'src/builder-env',
|
'src/builder-env',
|
||||||
],
|
],
|
||||||
hooks: {
|
rollup: {
|
||||||
'rollup:options' (ctx, options) {
|
dts: { respectExternal: false },
|
||||||
ctx.options.rollup.dts.respectExternal = false
|
inlineDependencies: ['untyped', 'knitwork'],
|
||||||
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)
|
|
||||||
}
|
|
||||||
},
|
|
||||||
},
|
},
|
||||||
externals: [
|
externals: [
|
||||||
// Type imports
|
// Type imports
|
||||||
|
Loading…
Reference in New Issue
Block a user