@mayank1513/esbuild-plugin-removetestid
TypeScript icon, indicating that this package has built-in type declarations

0.0.5 • Public • Published

ESBuild plugin removetestid test codecov Version Downloads Unit Tests npm bundle size

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

Compatibility

  • 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.

Install

$ pnpm add @mayank1513/esbuild-plugin-removetestid
# or
$ npm install @mayank1513/esbuild-plugin-removetestid
# or
$ yarn add @mayank1513/esbuild-plugin-removetestid

Usage

// tsup.config.ts or tsup.config.js
import { defineConfig } from "tsup";
import removeTestidPlugin from "@mayank1513/esbuild-plugin-removetestid";

export default defineConfig(options => ({
    ...
    esbuildPlugins:[removeTestidPlugin()]
}));

🤩 Don't forger to start this repo!

Want handson course for getting started with Turborepo? Check out React and Next.js with TypeScript

Repo Stats

License

Licensed as MIT open source.


with 💖 by Mayank Kumar Chaudhari

Dependencies (0)

    Dev Dependencies (0)

      Package Sidebar

      Install

      npm i @mayank1513/esbuild-plugin-removetestid

      Weekly Downloads

      4

      Version

      0.0.5

      License

      MIT

      Unpacked Size

      4.65 kB

      Total Files

      4

      Last publish

      Collaborators

      • mayank1513