Add the sourceMapIncludeSources option in the new JS API (#3226)

This commit is contained in:
Christophe Coevoet 2022-01-15 01:38:28 +01:00 committed by GitHub
parent 4f42632347
commit f355f602fc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 18 additions and 0 deletions

View File

@ -275,6 +275,16 @@ export interface Options<sync extends 'sync' | 'async'> {
*/
sourceMap?: boolean;
/**
* Whether Sass should include the sources in the generated source map.
*
* This option has no effect if [[sourceMap]] is `false`.
*
* @defaultValue `false`
* @category Output
*/
sourceMapIncludeSources?: boolean;
/**
* The [[OutputStyle]] of the compiled CSS.
*

View File

@ -104,6 +104,14 @@ export interface Options<sync extends 'sync' | 'async'> {
*/
sourceMap?: boolean;
/**
* If true, the compiler must include the sources in the sourceMap of the
* `CompileResult`.
*
* @default false
*/
sourceMapIncludeSources?: boolean;
/**
* If present, the compiler must format the emitted CSS in this style.
*