tinyify makes bundle break
alethiophile opened this issue · comments
I'm using browserify on a project one of whose outputs is a webextension. When using browserify alone, the webextension works fine. When using tinyify, loading the extension fails with "Uncaught ReferenceError: require is not defined".
I have verified that I am using the browserify output in both cases. The only difference is using tinyify or not.
Usually it's browser-pack-flat that causes incompatibilities. Try running it with --no-flat
/{flat: false}
: https://github.com/browserify/tinyify?tab=readme-ov-file#--no-flat-flat-false
That's my only guess, would need to have an example that reproduces the issue to say any more.