Brian Whitton

Results 18 comments of Brian Whitton

FWIW if you're just looking to import wavesurfer in a node context (but not run it), you can just shim `window` and `self`: ```js global.self = global; global.window = {};...

@bencehusi `global` is a `node` global. What happens if you add that code to your `_app.js` file?

fwiw I found the leak is more apparent when using the constructor. I was looping through an array of ~2000 filenames and loading each into memory so I could query...

I can confirm using `.npmrc` works on `10.17.0`: ``` # .npmrc node-options=--max_old_space_size=4096 ```

sure. here's a test project... ```sh # /tmp/test -rw-r--r-- 1 noslouch wheel 39B Feb 5 12:21 .npmrc -rw-r--r-- 1 noslouch wheel 38B Feb 5 12:21 index.js -rw-r--r-- 1 noslouch wheel...

try running a production build (`yarn build`) and checking the output. [tree-shaking is only enabled in production mode](https://webpack.js.org/guides/tree-shaking/#conclusion).

just want to throw in here that the handlebars engine wasn't recognizing partials with `.hbs` until I specified it in the value passed to `app.engine`, even though templates were recognized...