Skip to content

Commit faa3cd0

Browse files
committed
Revert "fix: minify with iife format to remove style modules constants"
This reverts commit 7afe87c.
1 parent 03fce4e commit faa3cd0

File tree

2 files changed

+1
-1
lines changed

2 files changed

+1
-1
lines changed

src/config.ts

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

src/helpers.ts

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

0 commit comments

Comments
 (0)