@paintless/mapper-core
v0.1.0
Published
Shared JSX source-attribute injection used by the Paintless build mappers
Maintainers
Readme
@paintless/mapper-core
The shared JSX rewriter that stamps data-paintless-source onto elements.
import { injectSourceAttributes } from '@paintless/mapper-core'
const { code, map } = injectSourceAttributes(source, { id: 'src/App.tsx' })Bundler plugins (mapper-vite, mapper-next, mapper-webpack, mapper-vue)
wrap this; use it directly only when writing a mapper for another bundler.
Part of Paintless — click an element in a running app, describe the change, let an agent make it. Docs: https://kyechan99.github.io/paintless/
MIT © kyechan99
