rollup-plugin-data-qa
Version:
[](https://www.npmjs.com/package/rollup-plugin-data-qa) [](https://github.com/semantic-releas
22 lines (21 loc) • 630 B
JavaScript
//#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 };