Skip to content

Commit 5feeedb

Browse files
committed
reduce build bundle size
1 parent 9d286f2 commit 5feeedb

File tree

4 files changed

+30
-6
lines changed

4 files changed

+30
-6
lines changed

CHANGELOG.md

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,15 @@
1-
# 1.0.4 (2022-01-17)
1+
# 1.0.5
2+
3+
Optimize build bundle
4+
5+
# 1.0.4
26

37
Fix styling bug with vertical volume slider
48

5-
# 1.0.3 (2022-01-17)
9+
# 1.0.3
610

711
Improve CSS selector scoping
812

9-
# 1.0.1 (2022-01-16)
13+
# 1.0.1
1014

1115
Initial release

package-lock.json

Lines changed: 19 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "shaka-player-ui-controls",
3-
"version": "1.0.4",
3+
"version": "1.0.5",
44
"description": "Vertical volume slider, rewind, fast forward ui controls for shaka player.",
55
"main": "dist/index.cjs.js",
66
"module": "dist/index.esm.js",
@@ -38,6 +38,7 @@
3838
"@rollup/plugin-node-resolve": "13.1.3",
3939
"postcss": "8.4.5",
4040
"rollup": "2.64.0",
41+
"rollup-plugin-peer-deps-external": "^2.2.4",
4142
"rollup-plugin-postcss": "4.0.2",
4243
"rollup-plugin-terser": "^7.0.2"
4344
}

rollup.config.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ import resolve from '@rollup/plugin-node-resolve';
22
import commonjs from '@rollup/plugin-commonjs';
33
import postcss from 'rollup-plugin-postcss';
44
import { terser } from "rollup-plugin-terser";
5+
import peerDepsExternal from 'rollup-plugin-peer-deps-external';
56
import path from 'path';
67
import pkg from './package.json';
78

@@ -20,6 +21,7 @@ export default
2021
}
2122
],
2223
plugins: [
24+
peerDepsExternal(),
2325
postcss({
2426
include: "**/styles.css",
2527
extract: path.resolve("dist/main.css"),

0 commit comments

Comments
 (0)