Skip to content

--bare needs to support module.parent so that node modules work correctly #976

@dominictarr

Description

@dominictarr

I want to use browserify --bare to create executables for node cli tools. With a large project, such as npmd (or browserify!) there might be a megabyte of javascript over hundreds of .js files. Since require is sync, and every file this can make start up time a UX issue. However, I figure that bundling everything into one large js file will be very fast (only one disk seek, especially on spinning disks)

However, the problem is that browserify does not support !module.parent which is a common way of detecting whether a given module is main module being run.

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