Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

broccoli-derequire

rwjblue443MIT1.0.0

Broccoli plugin to replace on token with another (require => dereq).

broccoli-plugin, javascript

readme

broccoli-derequire

Build Status

Summary

Uses derequire to replace all occurances of a given token with another (require with _dereq_ by default).

Installation

npm install --save-dev broccoli-derequire

Usage

Files

var derequire = require('broccoli-derequire');

Documentation

derequire(inputTree, options)


options.patterns {Array}

A list of objects with from and to properties.


options.pattern {Object}

A single pattern with from and to properties.

ZOMG!!! TESTS?!?!!?

I know, right?

Running the tests:

npm install
npm test

License

This project is distributed under the MIT license.

changelog

v1.0.0 (2021-02-18)

:boom: Breaking Change

Committers: 1

Changelog