Problem Built-in Bundler with JSZip

Hi,

I’m trying to use JSZip with Aurelia’s build-in bundler. The result is always a “maximum call stack size exceeded” error because of missing process, Buffer, … For some reasons it looks like JSZip behaves like in a node process instead of browser.

Does someone already have some experience with that?
I’ve created a demo, if someone wants to help https://github.com/stenet/au-jszip.

Adding JSZip to aurelia.json “prepend” results in an even more strange error.
Btw is there an option to disable a specific package from being traced and added by the bundler?

Thanks for any help!

1 Like

It’s in “Known problem of auto stubbing core Node.js modules”.

https://aurelia.io/docs/cli/cli-bundler/dependency-management#introduction

1 Like