Skip to content

Commit

Permalink
Update module exports
Browse files Browse the repository at this point in the history
  • Loading branch information
jerivas committed Nov 14, 2023
1 parent b41959e commit 7906f99
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
10 changes: 10 additions & 0 deletions lib/index.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ export const compile = sass.compile;
export const compileAsync = sass.compileAsync;
export const compileString = sass.compileString;
export const compileStringAsync = sass.compileStringAsync;
export const initAsyncCompiler = sass.initAsyncCompiler;
export const initCompiler = sass.initCompiler;
export const Logger = sass.Logger;
export const CalculationInterpolation = sass.CalculationInterpolation
export const CalculationOperation = sass.CalculationOperation
Expand Down Expand Up @@ -60,6 +62,14 @@ export default {
defaultExportDeprecation();
return sass.compileStringAsync;
},
get initAsyncCompiler() {
defaultExportDeprecation();
return sass.initAsyncCompiler;
},
get initCompiler() {
defaultExportDeprecation();
return sass.initCompiler;
},
get Logger() {
defaultExportDeprecation();
return sass.Logger;
Expand Down
2 changes: 2 additions & 0 deletions lib/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,8 @@ export {
compileAsync,
compileStringAsync,
} from './src/compile';
export {initAsyncCompiler} from './src/async-compiler';
export {initCompiler} from './src/sync-compiler';
export {render, renderSync} from './src/legacy';

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

0 comments on commit 7906f99

Please sign in to comment.