Expand description
Port of the option interfaces of src/@types/index.d.ts (ParserOptions, ParserSyncOptions, MinifyOptions,
ValidationOptions, RenderOptions, ModuleSyncOptions, …).
The typescript options object is shared and mutated by the parser (source, parseInfo, sourcesMap, …): the
port keeps a single struct passed by reference. Host callbacks (loaders, visitors, scoped name generators) are
defined in crate::host.
Structs§
- Module
Options ModuleSyncOptions/ModuleAsyncOptions- Parser
Options - parser, validation and minification options
- Sources
- sources of a parse, by id, in insertion order (
Mapin typescript)
Enums§
- Convert
Color convertColor?: boolean | ColorType- Module
Option module?: boolean | ModuleCaseTransformEnum | ModuleScopeEnumOptions | ModuleSyncOptions- Module
Scoped scoped?: boolean | ModuleScopeEnumOptions- Remove
Duplicate Declarations removeDuplicateDeclarations?: boolean | string | string[]- Source
MapOption sourcemap?: boolean | "inline"
Type Aliases§
- Sources
Map - sources of a parse: shared by the copies of the options