Merge pull request #11090 from taras/exclude-css-from-dts
Exclude static assets extensions from dts rollup config
This commit is contained in:
@@ -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.
|
||||
@@ -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()],
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user