rollup-plugin-jscodeshift
v1.0.0
Published
Modify rollup output with jscodeshift transforms
Downloads
4
Maintainers
Readme
🔎 rollup-plugin-jscodeshift
Modify rollup output with advanced find / replace dynamically.
Usage
yarn add rollup-plugin-jscodeshift -D
Run a jscodeshift transform function on any matching file.
import modify from 'rollup-plugin-jscodeshift'
export default {
plugins: [
modify({
transform: <jscodeshift transform function>, // https://github.com/facebook/jscodeshift#transform-module
pattern: /(index.js)/
})
]
}