Skip to content

Commit 7afe87c

Browse files
committed
fix: minify with iife format to remove style modules constants
1 parent 6987c19 commit 7afe87c

File tree

2 files changed

+1
-1
lines changed

2 files changed

+1
-1
lines changed

src/config.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@ export function userConfig({ entry, header }: ViteConfig): UserConfig {
1212
lib: {
1313
entry,
1414
name: header.name,
15-
formats: ['iife'],
1615
fileName: () => `${header.name}.js`
1716
},
1817
rollupOptions: {

src/helpers.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ export async function transform({
1515
loader,
1616
minify: true,
1717
sourcemap: false,
18+
format: 'iife',
1819
legalComments: 'none'
1920
})
2021

0 commit comments

Comments
 (0)