A browserify transform that rewrites require calls using aliases and regular expressions.
Aliasify is a browserify transform that rewrites `require` calls in JavaScript modules using aliases and regular expressions. It solves the problem of managing complex module paths, stubbing out packages for browser builds, and integrating with other transforms by providing flexible configuration options.
JavaScript developers using browserify for bundling who need to alias module paths, stub packages, or dynamically rewrite requires in their build process.
Developers choose Aliasify for its fine-grained control over require rewriting, support for regex-based aliasing, and ability to work seamlessly with other browserify transforms, offering more flexibility than browserify's native `browser` field.
Rewrite require calls in browserify modules.
Open-Awesome is built by the community, for the community. Submit a project, suggest an awesome list, or help improve the catalog on GitHub.
Supports configuration via package.json, external JS/JSON files, or programmatically through the Browserify API, allowing environment-specific setups as noted in the README.
Enables dynamic path rewriting with regular expressions, ideal for large codebases or integrating with transforms like reactify, as detailed in the replacements section.
Allows aliasing packages to false to remove them entirely for browser builds, simplifying dependency management as shown in the stubbing example.
Offers fine-grained resolution for aliases, with options to resolve relative to the requiring file or config directory, preventing path issues in complex projects.
As a transform, it adds processing time to builds compared to browserify's native browser field, which the README explicitly states is faster.
Tightly coupled with browserify, making it unsuitable for projects using other bundlers and limiting its relevance in modern ecosystems.
Multiple options like regex replacements and relative path settings can lead to steep learning curves and setup errors, especially for simple use cases.