patch-fix

This commit is contained in:
Untone 2024-09-16 12:03:43 +03:00
parent 20e7588019
commit 6a48b53216
2 changed files with 7 additions and 5 deletions

View File

@ -2,7 +2,7 @@ diff --git a/node_modules/sass-embedded/dist/bin/sass.js b/node_modules/sass-emb
old mode 100755 old mode 100755
new mode 100644 new mode 100644
diff --git a/node_modules/sass-embedded/dist/lib/src/legacy/importer.js b/node_modules/sass-embedded/dist/lib/src/legacy/importer.js diff --git a/node_modules/sass-embedded/dist/lib/src/legacy/importer.js b/node_modules/sass-embedded/dist/lib/src/legacy/importer.js
index 51fd501..2246d7f 100644 index 51fd501..ed5880f 100644
--- a/node_modules/sass-embedded/dist/lib/src/legacy/importer.js --- a/node_modules/sass-embedded/dist/lib/src/legacy/importer.js
+++ b/node_modules/sass-embedded/dist/lib/src/legacy/importer.js +++ b/node_modules/sass-embedded/dist/lib/src/legacy/importer.js
@@ -92,6 +92,8 @@ class LegacyImporterWrapper { @@ -92,6 +92,8 @@ class LegacyImporterWrapper {
@ -10,7 +10,7 @@ index 51fd501..2246d7f 100644
// exist so that the user's custom importer can still handle the // exist so that the user's custom importer can still handle the
// URL. // URL.
+ console.warn(`Invalid URL detected: ${url}. Skipping import.`); + console.warn(`Invalid URL detected: ${url}. Skipping import.`);
+ return null; + return;
} }
else { else {
throw error; throw error;

View File

@ -1,5 +1,6 @@
// biome-ignore lint/correctness/noNodejsModules: <explanation> // biome-ignore lint/correctness/noNodejsModules: <explanation>
import path from 'node:path' import path from 'node:path'
import sass from "sass";
import { CSSOptions } from 'vite' import { CSSOptions } from 'vite'
import mkcert from 'vite-plugin-mkcert' import mkcert from 'vite-plugin-mkcert'
import { PolyfillOptions, nodePolyfills } from 'vite-plugin-node-polyfills' import { PolyfillOptions, nodePolyfills } from 'vite-plugin-node-polyfills'
@ -32,9 +33,10 @@ export default {
css: { css: {
preprocessorOptions: { preprocessorOptions: {
scss: { scss: {
implementation: require('sass'), sourceMaps: false,
additionalData: '@import "src/styles/imports";\n', implementation: sass,
includePaths: ['./public', './src/styles'] additionalData: '@import "~/styles/imports";\n',
includePaths: ['./public', './src/styles'],
} }
} as CSSOptions['preprocessorOptions'] } as CSSOptions['preprocessorOptions']
}, },