Pavel Pustovalov
Pavel Pustovalov
Got same issue Versions: `6.3.12`, `6.4.7` Reproduce: https://github.com/pustovalov/sb-freeze-react-repro https://github.com/pustovalov/sb-freeze-react-repro/blob/master/stories/Page.stories.tsx#L22 Profile (need to kill tab process, to even get profile results)   Can share this profile, if it helps **UPD.**...
Looks like in new version of node, garbage collector will no longer clear memory until it reaches the limit. RAM: 4GB ### Node v14.17.3 ``` node --expose-gc --trace_gc ./node_modules/.bin/jest app/javascript...
@amiedes can you try to run jest in this way? ``` node --expose-gc --trace_gc --max-old-space-size=700 ./node_modules/.bin/jest app/javascript --runInBand --logHeapUsage > log/jest_memory_usage.log ```
@mb21 just looked, my current workaround for Node > `16.10` it's to tweak `max-old-space-size`, with your reproduce: Node `16.13.1` ``` ./node_modules/jest/bin/jest.js --runInBand --logHeapUsage PASS src/a72.test.js (253 MB heap size) Test...
@mzgoddard debug: ``` function updateMd5CacheItem(value) { if (file.includes('_config.sass')) { console.log('file', file) } ``` output: ``` 404s will fallback to /index.html [hardsource:de83c073] Tracking node dependencies with: yarn.lock. 69% building modules 1690/1696...
possible solution: fork this repository and merge this PR: https://github.com/mzgoddard/hard-source-webpack-plugin/pull/419
you can try to use this in `package.json`: ``` { "hard-source-webpack-plugin": "https://github.com/talkable/hard-source-webpack-plugin#build", } ``` but it's better to use your own fork
@MateusDantas have you tried this way https://github.com/mzgoddard/hard-source-webpack-plugin/issues/416#issuecomment-417699776?
Let's check just `canvg` usage ``` import Canvg from 'canvg' ``` https://github.com/pustovalov/jspdf-corejs-demo/blob/canvg/src/components/App.svelte 1.5.3  3.0.7  this is how I'm using `babel-preset-env` with `useBuiltIns: 'entry'` https://github.com/pustovalov/jspdf-corejs-demo/blob/canvg/src/index.js#L2 https://github.com/pustovalov/jspdf-corejs-demo/blob/canvg/babel.config.js#L32 https://babeljs.io/docs/en/babel-preset-env#usebuiltins ## Update...
Looks like I can't use `@babel/preset-env | useBuiltIns` and `@babel/plugin-transform-runtime` together: https://github.com/babel/babel/issues/10271#issuecomment-528379505