Skip to content

Commit

Permalink
fix: configure rollup to inline+base64 svg images
Browse files Browse the repository at this point in the history
  • Loading branch information
spezzino committed Sep 18, 2022
1 parent 974bd92 commit 23443be
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions rollup.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ export default [
output: { file: pkg.main, format: "cjs" },
external: excludeAllExternals,
plugins: [
svg(),
svg({ base64: true }),
resolve({ extensions }),
babel(getBabelOptions({ useESModules: false })),
],
Expand All @@ -51,7 +51,7 @@ export default [
output: { file: pkg.module, format: "esm" },
external: excludeAllExternals,
plugins: [
svg(),
svg({ base64: true }),
resolve({ extensions }),
babel(getBabelOptions({ useESModules: true })),
sizeSnapshot(snapshotArgs),
Expand Down

0 comments on commit 23443be

Please sign in to comment.