Private constructor
Throws an error if constructed directly, instead of via initCompiler.
The compile method exposed through a Compiler instance while it is active. If this is called after dispose on the Compiler instance, an error will be thrown.
During the Compiler instance's lifespan, given the same input, this will return an identical result to the compile method exposed at the module root.
Optional options: Options<"sync">
The compileString method exposed through a Compiler instance while it is active. If this is called after dispose on the Compiler instance, an error will be thrown.
During the Compiler instance's lifespan, given the same input, this will return an identical result to the compileString method exposed at the module root.
Optional options: StringOptions<"sync">
Ends the lifespan of this Compiler instance. After this is invoked, all calls to the Compiler instance's compile or compileString methods will result in an error.
© 2006–2025 the Sass team, and numerous contributors
Licensed under the MIT License.
https://sass-lang.com/documentation/js-api/classes/Compiler
The result of creating a synchronous compiler. Returned by initCompiler.