https://github.com/peteyycz/rollup-plugin-jscodeshift
Modify rollup output with jscodeshift transforms
https://github.com/peteyycz/rollup-plugin-jscodeshift
bundling codemod jscodeshift rollup
Last synced: 3 months ago
JSON representation
Modify rollup output with jscodeshift transforms
- Host: GitHub
- URL: https://github.com/peteyycz/rollup-plugin-jscodeshift
- Owner: peteyycz
- License: mit
- Created: 2022-08-26T09:46:02.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2022-08-26T09:57:42.000Z (about 3 years ago)
- Last Synced: 2025-03-05T04:30:25.347Z (7 months ago)
- Topics: bundling, codemod, jscodeshift, rollup
- Language: JavaScript
- Homepage:
- Size: 30.3 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
[]() []()
# 🔎 `rollup-plugin-jscodeshift`
Modify rollup output with advanced find / replace dynamically.
## Usage
```bash
yarn add rollup-plugin-jscodeshift -D
```Run a jscodeshift transform function on any matching file.
```js
import modify from 'rollup-plugin-jscodeshift'export default {
plugins: [
modify({
transform: , // https://github.com/facebook/jscodeshift#transform-module
pattern: /(index.js)/
})
]
}
```