Skip to content
This repository was archived by the owner on Mar 27, 2020. It is now read-only.

plugin@0.2.0

Choose a tag to compare

@deepsweet deepsweet released this 21 Jun 20:10
· 402 commits to master since this release

💥🛠️ allow plugins to return any object or nothing, the result will extend an input props

Before:

export default plugin('passFilesThrough', ({ files }) => files)

After:

export default plugin('passFilesThrough', ({ files }) => ({ files }))

or just:

export default plugin('dontAddAnything', () => {})

to add any additional data to the pipeline:

export default plugin('addFoo', () => ({ foo: 'bar' }))