Skip to content

Commit 91f382f

Browse files
jerivasjgerigmeyerjamesnwntkme
authored
[Shared Resources] Embedded host implementation (#261)
Co-authored-by: Jonny Gerig Meyer <[email protected]> Co-authored-by: James Stuckey Weber <[email protected]> Co-authored-by: なつき <[email protected]>
1 parent 728c8fe commit 91f382f

File tree

13 files changed

+824
-471
lines changed

13 files changed

+824
-471
lines changed

lib/index.mjs

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,10 @@ export const compile = sass.compile;
44
export const compileAsync = sass.compileAsync;
55
export const compileString = sass.compileString;
66
export const compileStringAsync = sass.compileStringAsync;
7+
export const AsyncCompiler = sass.AsyncCompiler;
8+
export const Compiler = sass.Compiler;
9+
export const initAsyncCompiler = sass.initAsyncCompiler;
10+
export const initCompiler = sass.initCompiler;
711
export const Logger = sass.Logger;
812
export const CalculationInterpolation = sass.CalculationInterpolation;
913
export const CalculationOperation = sass.CalculationOperation;
@@ -61,6 +65,22 @@ export default {
6165
defaultExportDeprecation();
6266
return sass.compileStringAsync;
6367
},
68+
get initAsyncCompiler() {
69+
defaultExportDeprecation();
70+
return sass.initAsyncCompiler;
71+
},
72+
get initCompiler() {
73+
defaultExportDeprecation();
74+
return sass.initCompiler;
75+
},
76+
get AsyncCompiler() {
77+
defaultExportDeprecation();
78+
return sass.AsyncCompiler;
79+
},
80+
get Compiler() {
81+
defaultExportDeprecation();
82+
return sass.Compiler;
83+
},
6484
get Logger() {
6585
defaultExportDeprecation();
6686
return sass.Logger;

lib/index.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,8 @@ export {
3232
compileAsync,
3333
compileStringAsync,
3434
} from './src/compile';
35+
export {initAsyncCompiler, AsyncCompiler} from './src/compiler/async';
36+
export {initCompiler, Compiler} from './src/compiler/sync';
3537
export {render, renderSync} from './src/legacy';
3638

3739
export const info = `sass-embedded\t${pkg.version}`;

lib/src/async-compiler.ts

Lines changed: 0 additions & 47 deletions
This file was deleted.

0 commit comments

Comments
 (0)