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