Skip to content

Commit

Permalink
Fix compiling API
Browse files Browse the repository at this point in the history
- Since Typescript 4.2 some Helpers to transpile to 4.2 are deprecated/removed. This includes __spread and __spreadArrays microsoft/TypeScript#41523.
- We heavily use the spread syntax in Dark Reader and thus need those helper functions.
- Due the upgrade of 4.2, tslib was outdated and didn't had the new helper function `__spreadArray`.
- After good hours of skimming trough the compiler and using the wrong commands to update tslib(default to 1.x). manually updating it to 2.1 which includes this new functions microsoft/tslib#133
https://github.com/microsoft/tslib/releases/tag/2.1.0
the API can be properly compiled again.
- Resolves #My personal issues with the API.
  • Loading branch information
Gusted committed Mar 7, 2021
1 parent c994e30 commit c03e59a
Show file tree
Hide file tree
Showing 2 changed files with 122 additions and 106 deletions.

0 comments on commit c03e59a

Please sign in to comment.