vitrify 0.12.0 → 0.12.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js
CHANGED
|
@@ -257,7 +257,9 @@ export const baseConfig = async ({ ssr, appDir, publicDir, base = '/', command =
|
|
|
257
257
|
.map((css) => `@import '${css}';`)
|
|
258
258
|
.join('\n')}\n`;
|
|
259
259
|
const sass = [
|
|
260
|
-
...Object.entries(sassVariables)
|
|
260
|
+
...Object.entries(sassVariables)
|
|
261
|
+
.filter(([key, value]) => value)
|
|
262
|
+
.map(([key, value]) => `${key}: ${value}`),
|
|
261
263
|
...globalSass.map((sass) => `@import '${sass}'`)
|
|
262
264
|
].join('\n');
|
|
263
265
|
code = code
|
package/package.json
CHANGED
package/src/node/index.ts
CHANGED
|
@@ -311,7 +311,7 @@ export const baseConfig = async ({
|
|
|
311
311
|
let onSetupFiles: OnSetupFile[]
|
|
312
312
|
let globalCss: string[] = []
|
|
313
313
|
let staticImports: StaticImports
|
|
314
|
-
let sassVariables: Record<string, string>
|
|
314
|
+
let sassVariables: Record<string, string | undefined>
|
|
315
315
|
let globalSass: string[]
|
|
316
316
|
let serverModules: string[] = internalServerModules
|
|
317
317
|
|
|
@@ -336,9 +336,9 @@ export const baseConfig = async ({
|
|
|
336
336
|
.join('\n')}\n`
|
|
337
337
|
|
|
338
338
|
const sass = [
|
|
339
|
-
...Object.entries(sassVariables)
|
|
340
|
-
([key, value]) =>
|
|
341
|
-
|
|
339
|
+
...Object.entries(sassVariables)
|
|
340
|
+
.filter(([key, value]) => value)
|
|
341
|
+
.map(([key, value]) => `${key}: ${value}`),
|
|
342
342
|
...globalSass.map((sass) => `@import '${sass}'`)
|
|
343
343
|
].join('\n')
|
|
344
344
|
code = code
|