From 95a41507c6be94069443a1d13ca9d91487970aa8 Mon Sep 17 00:00:00 2001 From: Christian Kaisermann Date: Sun, 17 Dec 2023 16:17:58 +0100 Subject: [PATCH] wip --- package.json | 2 +- src/transformers/scss.ts | 7 +++++++ 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/package.json b/package.json index 43060f8b..ea129d90 100644 --- a/package.json +++ b/package.json @@ -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...\"", diff --git a/src/transformers/scss.ts b/src/transformers/scss.ts index 8ea93489..5bea83cc 100644 --- a/src/transformers/scss.ts +++ b/src/transformers/scss.ts @@ -75,6 +75,13 @@ const transformer: Transformer = 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(),