This repository was archived by the owner on Mar 27, 2020. It is now read-only.
plugin@0.2.0
·
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' }))