chore: fix build

pull/2865/head
Divyansh Singh 1 year ago
parent e5afec5fa6
commit 6e41cadf30

@ -24,10 +24,7 @@ const external = [
...Object.keys(pkg.dependencies), ...Object.keys(pkg.dependencies),
...builtinModules.flatMap((m) => ...builtinModules.flatMap((m) =>
m.includes('punycode') ? [] : [m, `node:${m}`] m.includes('punycode') ? [] : [m, `node:${m}`]
), )
r('types/shared.d.ts'),
'postcss',
'source-map-js'
] ]
const plugins = [ const plugins = [
@ -70,7 +67,7 @@ const nodeTypes: RollupOptions = {
format: 'esm', format: 'esm',
file: 'dist/node/index.d.ts' file: 'dist/node/index.d.ts'
}, },
external, external: [...external, r('types/shared.d.ts'), 'postcss', 'source-map-js'],
plugins: [dts({ respectExternal: true })] plugins: [dts({ respectExternal: true })]
} }

Loading…
Cancel
Save