MCPcopy Create free account
hub / github.com/remix-run/react-router / isCssModulesFile

Function isCssModulesFile

packages/react-router-dev/vite/styles.ts:21–21  ·  view source on GitHub ↗
(file: string)

Source from the content-addressed store, hash-verified

19
20const isCssFile = (file: string) => cssFileRegExp.test(file);
21export const isCssModulesFile = (file: string) => cssModulesRegExp.test(file);
22
23// https://vitejs.dev/guide/features#disabling-css-injection-into-the-page
24// https://github.com/vitejs/vite/blob/561b940f6f963fbb78058a6e23b4adad53a2edb9/packages/vite/src/node/plugins/css.ts#L194

Callers 2

loadCssContentsFunction · 0.90
transformFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected