Skip to content

gobblejs/gobble-derequire

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

gobble-derequire

Remove require() calls with gobble and derequire.

Installation

First, you need to have gobble installed - see the gobble readme for details. Then,

npm i -D gobble-derequire

Usage

gobblefile.js

var gobble = require( 'gobble' );
module.exports = gobble( 'src' ).transform( 'derequire', options );

The options argument, if specified, is passed to derequire, and can include tokenFrom, tokenTo, or (if you want to make multiple replacements simultaneously) a replacements array of { from, to } objects. See the derequire README for more information.

License

MIT. Copyright 2015 Rich Harris

About

Remove require() calls with gobble and derequire

Resources

Stars

Watchers

Forks

Packages

No packages published