Merge pull request #26401 from backstage/rugvip/import-fix

cli: fix css + svg import conflict
This commit is contained in:
Patrik Oldsberg
2024-08-31 16:12:43 +02:00
committed by GitHub
2 changed files with 6 additions and 0 deletions
+5
View File
@@ -0,0 +1,5 @@
---
'@backstage/cli': patch
---
Fixed an issue where published frontend packages would end up with an invalid import structure if a single module imported both `.css` and `.svg` files.
+1
View File
@@ -118,6 +118,7 @@ export async function makeRollupConfigs(
),
output,
onwarn,
makeAbsoluteExternalsRelative: false,
preserveEntrySignatures: 'strict',
// All module imports are always marked as external
external: (source, importer, isResolved) =>