Skip to content

Commit 1600455

Browse files
committed
feat(package): use tslib to reduce dist size
1 parent 909e06b commit 1600455

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@
5050
"ts-jest": "24.1.0",
5151
"ts-loader": "6.2.1",
5252
"tsconfig-paths-webpack-plugin": "3.2.0",
53+
"tslib": "^1.10.0",
5354
"webpack": "4.41.5",
5455
"webpack-merge": "4.2.2",
5556
"webpack-node-externals": "1.7.2"

tsconfig.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
// "composite": true, /* Enable project compilation */
1717
// "removeComments": true, /* Do not emit comments to output. */
1818
// "noEmit": true, /* Do not emit outputs. */
19-
// "importHelpers": true, /* Import emit helpers from 'tslib'. */
19+
"importHelpers": true, /* Import emit helpers from 'tslib'. */
2020
// "downlevelIteration": true, /* Provide full support for iterables in 'for-of', spread, and destructuring when targeting 'ES5' or 'ES3'. */
2121
// "isolatedModules": true, /* Transpile each file as a separate module (similar to 'ts.transpileModule'). */
2222

yarn.lock

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7803,7 +7803,7 @@ tsconfig-paths@^3.4.0:
78037803
minimist "^1.2.0"
78047804
strip-bom "^3.0.0"
78057805

7806-
tslib@^1.8.1:
7806+
tslib@^1.10.0, tslib@^1.8.1:
78077807
version "1.10.0"
78087808
resolved "https://registry.yarnpkg.com/tslib/-/tslib-1.10.0.tgz#c3c19f95973fb0a62973fb09d90d961ee43e5c8a"
78097809
integrity sha512-qOebF53frne81cf0S9B41ByenJ3/IuH8yJKngAX35CmiZySA0khhkovshKK+jGCaMnVomla7gVlIcc3EvKPbTQ==

0 commit comments

Comments
 (0)