Private constructor
Throws an error if constructed directly, instead of via initAsyncCompiler.
The compileAsync method exposed through an Async Compiler instance while it is active. If this is called after dispose on the Async Compiler instance, an error will be thrown.
During the Async Compiler instance's lifespan, given the same input, this will return an identical result to the compileAsync method exposed at the module root.
Optional options: Options<"async">
The compileStringAsync method exposed through an Async Compiler instance while it is active. If this is called after dispose on the Async Compiler instance, an error will be thrown.
During the Async Compiler instance's lifespan, given the same input, this will return an identical result to the compileStringAsync method exposed at the module root.
Optional options: StringOptions<"async">
Ends the lifespan of this Async Compiler instance. After this is invoked, all subsequent calls to the Compiler instance's compileAsync or compileStringAsync methods will result in an error.
Any compilations that are submitted before dispose will not be cancelled, and will be allowed to settle.
After all compilations have been settled and Sass completes any internal task cleanup, dispose will resolve its promise.
© 2006–2025 the Sass team, and numerous contributors
Licensed under the MIT License.
https://sass-lang.com/documentation/js-api/classes/AsyncCompiler
The result of creating an asynchronous compiler. Returned by initAsyncCompiler.