@julong/vite-plugin-jsx-remove-attrs
TypeScript icon, indicating that this package has built-in type declarations

1.0.2 • Public • Published

vite-plugin-jsx-remove-attrs

This is a SWC-based plugin that removes some attributes from jsx, such as data-testid.

Under normal circumstances, it will only take effect when compiling, and will not take effect on the vite server.

Table of Contents

Installation

npm install --save-dev @julong/vite-plugin-jsx-remove-attrs

Usage

import removeAttrs from '@julong/vite-plugin-jsx-remove-attrs';

export default defineConfig(() => {
  plugins: [
    removeAttrs(['data-testid', 'data-xxx']),
  ],
});

Maintainers

JuLong - jl917

Contributing

Anyone is welcome to participate in the maintenance and development of this project, and can also submit Issues and PR's

License

MIT

Readme

Keywords

none

Package Sidebar

Install

npm i @julong/vite-plugin-jsx-remove-attrs

Weekly Downloads

0

Version

1.0.2

License

ISC

Unpacked Size

5.51 kB

Total Files

6

Last publish

Collaborators

  • julong