Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
kaisermann committed Dec 17, 2023
1 parent 062baf2 commit 95a4150
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
"prebuild": "node scripts.js rmrf ./dist",
"build": "tsc --build tsconfig.build.json",
"dev": "pnpm build -w",
"test": "jest",
"test": "jest transformers/scss",
"lint": "eslint --ext js,ts .",
"format": "prettier --write \"**/*.{ts,js,json}\"",
"postinstall": "echo \"[svelte-preprocess] Don't forget to install the preprocessors packages that will be used: sass, stylus, less, postcss & postcss-load-config, coffeescript, pug, etc...\"",
Expand Down
7 changes: 7 additions & 0 deletions src/transformers/scss.ts
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,13 @@ const transformer: Transformer<Options.Sass> = async ({
? compiled.stats.entry
: join(process.cwd(), compiled.stats.entry);

console.log({
absoluteEntryPath,
absEntry: compiled.stats.entry,
absManual: join(process.cwd(), compiled.stats.entry),
included: compiled.stats.includedFiles,
});

const processed = {
code: compiled.css.toString(),
map: compiled.map?.toString(),
Expand Down

0 comments on commit 95a4150

Please sign in to comment.