Wired in String.join transformation

This commit is contained in:
1000000000 2021-04-01 21:57:43 -04:00
parent df46a92805
commit 01e539fb1f
2 changed files with 4 additions and 0 deletions

View File

@ -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],

View File

@ -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
};