Skip to content

tinyify makes bundle break #56

Description

@alethiophile

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.

Activity

  1. goto-bus-stop commented on Nov 10, 2023

    @goto-bus-stop
    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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions