Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

tinyify makes bundle break #56

Open
alethiophile opened this issue Nov 10, 2023 · 1 comment
Open

tinyify makes bundle break #56

alethiophile opened this issue Nov 10, 2023 · 1 comment

Comments

@alethiophile
Copy link

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.

@goto-bus-stop
Copy link
Member

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants