(rootNode, options, imports)
| 5 | } |
| 6 | |
| 7 | toCSS(rootNode, options, imports) { |
| 8 | const sourceMapOutput = new SourceMapOutput( |
| 9 | { |
| 10 | contentsIgnoredCharsMap: imports.contentsIgnoredChars, |
| 11 | rootNode, |
| 12 | contentsMap: imports.contents, |
| 13 | sourceMapFilename: this.options.sourceMapFilename, |
| 14 | sourceMapURL: this.options.sourceMapURL, |
| 15 | outputFilename: this.options.sourceMapOutputFilename, |
| 16 | sourceMapBasepath: this.options.sourceMapBasepath, |
| 17 | sourceMapRootpath: this.options.sourceMapRootpath, |
| 18 | outputSourceFiles: this.options.outputSourceFiles, |
| 19 | sourceMapGenerator: this.options.sourceMapGenerator, |
| 20 | sourceMapFileInline: this.options.sourceMapFileInline, |
| 21 | disableSourcemapAnnotation: this.options.disableSourcemapAnnotation |
| 22 | }); |
| 23 | |
| 24 | const css = sourceMapOutput.toCSS(options); |
| 25 | this.sourceMap = sourceMapOutput.sourceMap; |
| 26 | this.sourceMapURL = sourceMapOutput.sourceMapURL; |
| 27 | if (this.options.sourceMapInputFilename) { |
| 28 | this.sourceMapInputFilename = sourceMapOutput.normalizeFilename(this.options.sourceMapInputFilename); |
| 29 | } |
| 30 | if (this.options.sourceMapBasepath !== undefined && this.sourceMapURL !== undefined) { |
| 31 | this.sourceMapURL = sourceMapOutput.removeBasepath(this.sourceMapURL); |
| 32 | } |
| 33 | return css + this.getCSSAppendage(); |
| 34 | } |
| 35 | |
| 36 | getCSSAppendage() { |
| 37 |
nothing calls this directly
no test coverage detected