Skip to content

Internally scoped require() and define() cause false downloads #292

@cburgmer

Description

@cburgmer

I am trying to use inject together with browserify. The latter is a perfect tool of compiling all local sources with CommonJS requires into one big distributable bundle. Inject can help complete such a setup when setting up a simple development environment without the need to constantly repackage the bundle with browserify.

However, importing existing bundles made by browserify triggers Inject to load resources contained inside those and resulting in a lot of 404s. This might not only load wrong resources, but slows down the initial loading phase a lot.

The proper solution for Inject would be not to parse the require statements that are offered by the browserify package itself.

(EDIT: Updated title to reflect the root of the issue)

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions