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

11 lines (10 loc) 364 B
//#region src/utils/shouldProcessModule/index.ts const STYLED_TS_PATTERN = /(?:^|\/)styled\.ts$/; function shouldProcessModule(id) { if (id.endsWith(".d.ts")) return false; if (id.endsWith(".tsx") || id.endsWith(".jsx")) return true; if (id.endsWith(".ts")) return STYLED_TS_PATTERN.test(id); return true; } //#endregion exports.default = shouldProcessModule;