Skip to content

Latest commit

 

History

History
22 lines (15 loc) · 599 Bytes

API.md

File metadata and controls

22 lines (15 loc) · 599 Bytes

API

CacheFly(optsArg, [transforms])

Arguments

  • optsArg (Object|null): Options to cacheFly
  • [transforms] (...Transform): Transform source code before parsing it for require() calls with the transform function or module name tr.

Returns

  • (Array): Returns the transforms to browserify. With the validation of the files changed.

Example

const bundler = Browserify({
  transform: CacheFly(null, [Babelify, {preset: ["es2015"]}])
})
.bundle()