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).map(([key, value]) => `${key}: ${value}`),
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
@@ -50,7 +50,7 @@ export interface VitrifyConfig extends UserConfig {
50
50
  * Global SASS variables
51
51
  */
52
52
  sass?: {
53
- variables?: Record<string, string>;
53
+ variables?: Record<string, string | undefined>;
54
54
  global?: string[];
55
55
  };
56
56
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vitrify",
3
- "version": "0.12.0",
3
+ "version": "0.12.1",
4
4
  "license": "MIT",
5
5
  "author": "Stefan van Herwijnen",
6
6
  "description": "Vite as your Full Stack development tool",
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).map(
340
- ([key, value]) => `${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
@@ -72,7 +72,7 @@ export interface VitrifyConfig extends UserConfig {
72
72
  * Global SASS variables
73
73
  */
74
74
  sass?: {
75
- variables?: Record<string, string>
75
+ variables?: Record<string, string | undefined>
76
76
  global?: string[]
77
77
  }
78
78
  /**