Skip to content
This repository was archived by the owner on Nov 8, 2024. It is now read-only.

Commit 5d90dda

Browse files
Merge pull request #366 from apiaryio/bundle-size
Uses "terser" plugin to compress the built bundle
2 parents 4d5c0a9 + db1d4fa commit 5d90dda

File tree

3 files changed

+94
-1
lines changed

3 files changed

+94
-1
lines changed

package-lock.json

+89
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

+1
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,7 @@
6767
"rollup": "1.27.9",
6868
"rollup-plugin-commonjs": "10.1.0",
6969
"rollup-plugin-node-resolve": "5.2.0",
70+
"rollup-plugin-terser": "5.1.3",
7071
"semantic-release": "15.13.31",
7172
"sinon": "7.5.0"
7273
},

rollup.config.js

+4-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
const resolve = require('rollup-plugin-node-resolve');
22
const commonjs = require('rollup-plugin-commonjs');
33
const json = require('@rollup/plugin-json/dist');
4+
const { terser } = require('rollup-plugin-terser');
5+
46
const packageJson = require('./package.json');
57

68
const buildUmd = {
@@ -21,7 +23,8 @@ const buildUmd = {
2123
preferBuiltins: false
2224
}),
2325
json(),
24-
commonjs()
26+
commonjs(),
27+
terser()
2528
]
2629
};
2730

0 commit comments

Comments
 (0)