diff --git a/src/transform.ts b/src/transform.ts index 9ec4585..ee1bd7c 100644 --- a/src/transform.ts +++ b/src/transform.ts @@ -23,6 +23,7 @@ import { createPassUnwrappedFunctionsTransformer } from './transforms/passUnwrap import { replaceVDomNode } from './transforms/adjustVirtualDom'; import { inlineNumberToString } from './transforms/inlineNumberToString'; import { replaceListFunctions } from './transforms/replaceListFunctions'; +import { replaceStringFunctions } from './transforms/replaceStringFunctions'; import { reportFunctionStatusInBenchmarks, v8Debug } from './transforms/analyze'; export type Options = { @@ -80,6 +81,7 @@ export const transform = async ( let inlineCtx: InlineContext | undefined; const transformations: any[] = removeDisabled([ [transforms.replaceListFunctions, replaceListFunctions], + [transforms.replaceStringFunctions, replaceStringFunctions], [transforms.v8Analysis, v8Debug], [transforms.variantShapes, normalizeVariantShapes], diff --git a/src/types.ts b/src/types.ts index a2e8a1b..92ac0dd 100644 --- a/src/types.ts +++ b/src/types.ts @@ -35,6 +35,7 @@ export type Transforms = { objectUpdate: ObjectUpdate | false; unusedValues: boolean; replaceListFunctions: boolean; + replaceStringFunctions: boolean; v8Analysis: boolean; }; @@ -77,5 +78,6 @@ export const toolDefaults: Transforms = { objectUpdate: false, unusedValues: false, replaceListFunctions: false, + replaceStringFunctions: false, v8Analysis: false };