Skip to content

Commit b3fcead

Browse files
committed
Remove IIFE bundle, keep only ESM and UMD outputs
1 parent bd512ce commit b3fcead

File tree

2 files changed

+3
-15
lines changed

2 files changed

+3
-15
lines changed

package.json

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,11 @@
55
"type": "module",
66
"main": "dist/darkify.umd.js",
77
"module": "dist/darkify.esm.js",
8-
"browser": "dist/darkify.min.js",
98
"types": "dist/darkify.d.ts",
109
"files": [
1110
"dist/darkify.d.ts",
12-
"dist/darkify.esm.js",
1311
"dist/darkify.umd.js",
14-
"dist/darkify.min.js"
12+
"dist/darkify.esm.js"
1513
],
1614
"scripts": {
1715
"_cls": "rm -rf dist",

rollup.config.ts

Lines changed: 2 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -27,20 +27,10 @@ const config = [
2727
banner: BANNER,
2828
plugins: [terser()],
2929
},
30-
{
31-
file: 'dist/darkify.min.js',
32-
name: 'Darkify',
33-
format: 'iife',
34-
banner: BANNER,
35-
plugins: [terser()],
36-
},
3730
],
3831
plugins: [
39-
typescript(),
40-
cleanup({
41-
comments: 'none',
42-
extensions: ['ts', 'js'],
43-
}),
32+
typescript({ tsconfig: './tsconfig.json' }),
33+
cleanup({ comments: 'none', extensions: ['ts'] }),
4434
],
4535
},
4636
{

0 commit comments

Comments
 (0)