ESBuild plugin to remove data-testid attributes
npm install @mayank1513/esbuild-plugin-removetestid> This package is deprecated in favor of esbuild-plugin-react18.
> Please switch to esbuild-plugin-react18, which also offers additional options and more control over your build output. There is also a template repository which you can use to create your next library.
This is a simple esbuild plugin to remove data-testid attribute. Use this along with esbuild-plugin-ignoretests. Ref
- JavaScript/TypeScript React libraries using tsup or other builders based on esbuild
This plugin seamlessly integrates with tsup and any other builders based on esbuild.
``bash`
$ pnpm add @mayank1513/esbuild-plugin-removetestidor
$ npm install @mayank1513/esbuild-plugin-removetestidor
$ yarn add @mayank1513/esbuild-plugin-removetestid
`ts
// tsup.config.ts or tsup.config.js
import { defineConfig } from "tsup";
import removeTestidPlugin from "@mayank1513/esbuild-plugin-removetestid";
export default defineConfig(options => ({
...
esbuildPlugins:[removeTestidPlugin()]
}));
``
Want handson course for getting started with Turborepo? Check out React and Next.js with TypeScript
Licensed as MIT open source.
with 💖 by Mayank Kumar Chaudhari