Skip to content

Commit e059716

Browse files
committed
Simplify rollup config.
1 parent 3561f04 commit e059716

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

rollup.config.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ const lib = {
3535
umd: {
3636

3737
input: pkg.main,
38-
plugins: [resolve()].concat(production ? [babel()] : []),
38+
plugins: production ? [babel()] : [],
3939
output: {
4040
file: pkg.main,
4141
format: "umd",
@@ -71,7 +71,7 @@ const demo = {
7171

7272
input: "public/demo/index.js",
7373
external: external,
74-
plugins: [resolve()].concat(production ? [babel()] : []),
74+
plugins: production ? [babel()] : [],
7575
output: {
7676
file: "public/demo/index.js",
7777
format: "iife",
@@ -86,7 +86,7 @@ export default [lib.esm, lib.umd, demo.esm, demo.iife].concat(production ? [{
8686

8787
input: lib.esm.output[1].file,
8888
external: external,
89-
plugins: [resolve(), babel(), minify({
89+
plugins: [babel(), minify({
9090
bannerNewLine: true,
9191
comments: false
9292
})],
@@ -102,7 +102,7 @@ export default [lib.esm, lib.umd, demo.esm, demo.iife].concat(production ? [{
102102

103103
input: demo.esm.output[1].file,
104104
external: external,
105-
plugins: [resolve(), babel(), minify({ comments: false })],
105+
plugins: [babel(), minify({ comments: false })],
106106
output: {
107107
file: demo.esm.output[1].file,
108108
format: "iife",

0 commit comments

Comments
 (0)