Struct sourcemap::RewriteOptions [] [src]

pub struct RewriteOptions<'a> {
    pub with_names: bool,
    pub with_source_contents: bool,
    pub load_local_source_contents: bool,
    pub base_path: Option<&'a Path>,
}

Controls the SourceMap::rewrite behavior

Default configuration:

  • with_names: true
  • with_source_contents: true
  • load_local_source_contents: false

Fields

If enabled, names are kept in the rewritten sourcemap.

If enabled source contents are kept in the sourcemap.

If enabled local source contents that are not in the file are automatically inlined.

The base path to the used for source reference resolving when loading local source contents is used.

Trait Implementations

impl<'a> Default for RewriteOptions<'a>
[src]

Returns the "default value" for a type. Read more