-
-
Notifications
You must be signed in to change notification settings - Fork 75
Commit
importHelpers
to avoid duplicating helpers
In ES5 code, TypeScript relies on specific helpers (such as `__spreadArrays()`) to support ES2015+ features. These helpers can be either imported from `tslib` (by enabling the `importHelpers` TS compiler option) or inserted inline (by disabling both `importHelpers` and `noEmitHelpers`, which are both initially set to `false`). Currently, the helpers are directly inserted into each JavaScript module, resulting in a larger final size compared to importing them from the `tslib` library. Therefore, in this commit, we enable the `importHelpers` option and include `tslib` as a dependency.
- Loading branch information
There are no files selected for viewing
Large diffs are not rendered by default.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.