Skip to main content

Module options

Module options 

Source
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§

ModuleOptions
ModuleSyncOptions / ModuleAsyncOptions
ParserOptions
parser, validation and minification options
Sources
sources of a parse, by id, in insertion order (Map in typescript)

Enums§

ConvertColor
convertColor?: boolean | ColorType
ModuleOption
module?: boolean | ModuleCaseTransformEnum | ModuleScopeEnumOptions | ModuleSyncOptions
ModuleScoped
scoped?: boolean | ModuleScopeEnumOptions
RemoveDuplicateDeclarations
removeDuplicateDeclarations?: boolean | string | string[]
SourceMapOption
sourcemap?: boolean | "inline"

Type Aliases§

SourcesMap
sources of a parse: shared by the copies of the options