mirror of
https://github.com/mdgriffith/elm-optimize-level-2.git
synced 2024-11-25 22:50:42 +03:00
Wired in String.join transformation
This commit is contained in:
parent
df46a92805
commit
01e539fb1f
@ -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],
|
||||
|
@ -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
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user