browserify / browserify/bundle-collapser

Option to define custom require method or blacklisting strings

Open
#16 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
191
Forks
11
PR merge metrics
No merged PRs in 30d

Description

I’m using [Nunjucksify](https://github.com/rotundasoftware/nunjucksify) and I have the problem described in this [issue](https://github.com/rotundasoftware/nunjucksify/issues/11). Since I believe plugin runs after all transforms are applied, it can’t know about additional created requires - in the case of Nunjucks, it’s `env.getTemplate({module-name})`.

Is it possbile to have option to define custom require method or option to blacklist particular strings inside requires? That way bundle-collapser will just ignore those modules.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.