MCPcopy Index your code
hub / github.com/callstack/linaria / css

Function css

packages/core/src/css.ts:13–22  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

11let idx = 0;
12
13const css: CSS = () => {
14 if (process.env.NODE_ENV === 'test') {
15 // eslint-disable-next-line no-plusplus
16 return `mocked-css-${idx++}` as LinariaClassName;
17 }
18
19 throw new Error(
20 'Using the "css" tag in runtime is not supported. Make sure you have set up the Babel plugin correctly.'
21 );
22};
23
24export default css;

Callers 10

styled.tsFile · 0.90
core.tsFile · 0.90
PageFunction · 0.90
PageFunction · 0.90
PageFunction · 0.90
PageFunction · 0.90
CSRChildFunction · 0.90
CSRComponentFunction · 0.90
index.jsxFile · 0.90
rollup.config.mjsFile · 0.50

Calls

no outgoing calls

Tested by

no test coverage detected