Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/BuilderIO/mitosis
/ prefixWithFunction
Function
prefixWithFunction
packages/core/src/helpers/patterns.ts:13–13 ·
view source on GitHub ↗
(str: string)
Source
from the content-addressed store, hash-verified
11
getter.replace(/[\S\s]*\(\) \{([\S\s]*)\}[\S\s]*/,
'$1'
).trim();
12
13
export
const
prefixWithFunction = (str: string) => `
function
${str}`;
Callers
1
FUNCTION_HACK_PLUGIN
Function · 0.90
Calls
no outgoing calls
Tested by
no test coverage detected
Used in the wild
real call sites across dependent graphs
searching dependent graphs…