UNPKG

rollup-plugin-data-qa

Version:

[![npm](https://img.shields.io/npm/dm/rollup-plugin-data-qa.svg)](https://www.npmjs.com/package/rollup-plugin-data-qa) [![semantic-release](https://img.shields.io/badge/semantic-release-e10079.svg?logo=semantic-release)](https://github.com/semantic-releas

22 lines (21 loc) 630 B
//#region src/pluginConstants.ts const IS_E2E_ENABLED = "process.env.E2E_ENABLED === 'true'"; const DATA_QA = "data-qa"; const JSX_CALLEE_NAMES = [ "jsxDEV", "jsx", "_jsx", "jsxs", "_jsxs" ]; const FRAGMENT_NAMES = ["Fragment", "_Fragment"]; const DEFAULT_STYLED_COMPONENT_NAMES = ["styled"]; const TRANSFORM_HOOK_ID_FILTER = [ /\.tsx$/, /\.jsx$/, /\.js$/, /(?:^|\/)styled\.ts$/ ]; const DEFAULT_TRANSFORM_EXCLUDE = ["**/node_modules/**", "**/*.d.ts"]; //#endregion export { DATA_QA, DEFAULT_STYLED_COMPONENT_NAMES, DEFAULT_TRANSFORM_EXCLUDE, FRAGMENT_NAMES, IS_E2E_ENABLED, JSX_CALLEE_NAMES, TRANSFORM_HOOK_ID_FILTER };