Skip to content

Commit 6e41cad

Browse files
committed
chore: fix build
1 parent e5afec5 commit 6e41cad

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

rollup.config.ts

+2-5
Original file line numberDiff line numberDiff line change
@@ -24,10 +24,7 @@ const external = [
2424
...Object.keys(pkg.dependencies),
2525
...builtinModules.flatMap((m) =>
2626
m.includes('punycode') ? [] : [m, `node:${m}`]
27-
),
28-
r('types/shared.d.ts'),
29-
'postcss',
30-
'source-map-js'
27+
)
3128
]
3229

3330
const plugins = [
@@ -70,7 +67,7 @@ const nodeTypes: RollupOptions = {
7067
format: 'esm',
7168
file: 'dist/node/index.d.ts'
7269
},
73-
external,
70+
external: [...external, r('types/shared.d.ts'), 'postcss', 'source-map-js'],
7471
plugins: [dts({ respectExternal: true })]
7572
}
7673

0 commit comments

Comments
 (0)