Skip to content

rewriteSpecifiers

function rewriteSpecifiers(
source,
from?,
to?
): string;

Defined in: src/build/fix-elysia2-types.ts:26

Rewrite "<from>" / "<from>/…" module specifiers to <to> in a string.

Parameter Type Default value
source string undefined
from? string "elysia-v2"
to? string "elysia"

string