Merge pull request #11090 from taras/exclude-css-from-dts

Exclude static assets extensions from dts rollup config
This commit is contained in:
Ben Lambert
2022-04-28 10:20:20 +02:00
committed by GitHub
2 changed files with 16 additions and 0 deletions
+6
View File
@@ -0,0 +1,6 @@
---
'@backstage/cli': patch
---
Changed Rollup configuration for TypeScript definition plugin to ignore `css`,
`scss`, `sass`, `svg`, `eot`, `woff`, `woff2` and `ttf` files.
+10
View File
@@ -154,6 +154,16 @@ export async function makeRollupConfigs(
file: resolvePath(distDir, 'index.d.ts'),
format: 'es',
},
external: [
/\.css$/,
/\.scss$/,
/\.sass$/,
/\.svg$/,
/\.eot$/,
/\.woff$/,
/\.woff2$/,
/\.ttf$/,
],
onwarn,
plugins: [dts()],
});