piotrwitek/typesafe-actions
The issue has been solved
High memory consumption #168
zdila posted onGitHub
Description
Cmpiling application with couple of reducers (20) and action creators (200) takes 2 GB RAM and requires passing --max-old-space-size
to node when invoking tsc
. Before fixing #164 it was much worse but it is still unuseable.
Steps to Reproduce
Steps to reproduce the behavior:
- Download and unpack https://drive.google.com/file/d/1FUzk5NeRfxUvwd4eXCxIFcb7Scmvh9D4/view?usp=sharing
- run
npm i
- run
node --max-old-space-size=8192 ./node_modules/.bin/tsc --diagnostics
- See the result
Expected behavior
Compilation of such project should be a piece of cake ;-)
Suggested solution(s)
Improve types or identify bug in TypeScript.
Project Dependencies
- Typesafe-Actions Version: 4.4.1
- TypeScript Version: 3.5.2
- tsconfig.json: included in the tgz
Environment (optional)
- OS: Debian Linux Buster
- Node Version: 12.4.0
- Package Manager and Version: npm 6.9.0
Fund this Issue
Rewarded pull request
#168 #171submitted bypiotrwitek(783)
Click to copy link
Recent activities