Skip to content

Commit 2d89e9b

Browse files
authored
fix(bundlesize): Reduced overall size by around 0.5kB (#313)
The goal here is to reduce the bundlesize as much as possible while not creating breaking changes to the typescript library definitions, nor breaking the spec or any other regressions.
1 parent dd4da19 commit 2d89e9b

File tree

9 files changed

+247
-231
lines changed

9 files changed

+247
-231
lines changed

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,10 +28,10 @@
2828
"build:umd.min": "BABEL_ENV=umd NODE_ENV=production rollup -c -f umd -o umd/scroll-into-view-if-needed.min.js",
2929
"clean": "rimraf 'umd' 'es' 'typings'",
3030
"precommit": "lint-staged",
31-
"dev": "concurrently 'tsc --watch' 'yarn build:cjs --watch'",
31+
"dev": "concurrently 'tsc --noEmit --watch' 'tsc --noEmit -p tests/typescript --watch' 'yarn build:cjs --watch' 'yarn build:es --watch' 'yarn build:umd --watch' 'yarn build:umd.min --watch'",
3232
"lint": "eslint ./integration-examples",
3333
"prepublishOnly": "unset npm_config_cafile && yarn build",
34-
"typecheck": "tsc --noEmit"
34+
"typecheck": "tsc --noEmit && tsc --noEmit -p tests/typescript"
3535
},
3636
"devDependencies": {
3737
"@babel/cli": "7.0.0-beta.51",

0 commit comments

Comments
 (0)