This repository was archived by the owner on Apr 20, 2022. It is now read-only.

Description
In my project with around 100 pages (plus tons of twig imports, macro , etc...) I see the regrasion of RAM memory from 2G to 8G in couple of builds and then webpaack throw "out of memory" error.
I quick looked in to source code of this loader and have some questions, why we every time init Twig then function called? Why not setup Twig once and then use it in next call?
//setup twig here
const Twig= ....
module.exports = function loader(source) {
...
}