1.0.2 • Published 1 year ago

@julong/vite-plugin-jsx-remove-attrs v1.0.2

Weekly downloads
-
License
ISC
Repository
github
Last release
1 year ago

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

1.0.2

1 year ago

1.0.0-next.6

1 year ago

1.0.1

1 year ago

1.0.0-next.5

1 year ago

1.0.0

1 year ago

1.0.0-next.4

1 year ago

1.0.0-next.3

1 year ago

1.0.0-next.2

1 year ago

1.0.0-next.1

1 year ago