Skip to content

Commit

Permalink
Update: Directly import the renderSync function
Browse files Browse the repository at this point in the history
  • Loading branch information
jonnitto committed Jun 21, 2023
1 parent a9b2a75 commit feb0807
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Lib/sass.mjs
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import * as sass from "sass";
import { renderSync } from "sass";
import tildeImporter from "node-sass-tilde-importer";
import { config, styleFiles, compression } from "./helper.mjs";
function render(key) {
const { to, sourcemap } = styleFiles[key];
const result = sass.renderSync({
const result = renderSync({
outputStyle: compression ? "compressed" : "expanded",
sourceMap: sourcemap,
sourceMapContents: true,
Expand Down

0 comments on commit feb0807

Please sign in to comment.