@voltiso/transform/inline
Type-alias-inlining using either:
-
@inline
JSDoc - to inline the type alias everywhere it's used (in.d.ts
files) -
@inline
comment before usage of any alias to attempt inlining it (in.d.ts
files)
Config:
-
onInlineError: 'fail'
- causes compiler to crash if type-inlining fails (usually symbols out of scope) - this applies only to the JSDoc inlining method (1.
)
@voltiso/transform/strip
Strip symbols such as asserts from production code.
Config:
-
modules: string[]
- comment-out import declarations with given prefixes -
symbols: string[]
- comment-out instructions containingtokens
(function calls, etc.)