Pavel Pustovalov

Results 15 comments of 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) ![image](https://user-images.githubusercontent.com/1568885/144748814-32f4ba2e-7a05-4f45-a561-9c74c977954c.png) ![image](https://user-images.githubusercontent.com/1568885/144748856-a5bbedb5-743c-4f7a-b88c-0a7fb893fbf0.png) 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 ![image](https://user-images.githubusercontent.com/1568885/104227500-29301300-5452-11eb-94ea-4db66a0f2cd7.png) 3.0.7 ![image](https://user-images.githubusercontent.com/1568885/104228471-95f7dd00-5453-11eb-9198-487888ede117.png) 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