vite-plugin-token-shaker 0.0.4 → 0.0.5

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.
Files changed (2) hide show
  1. package/dist/index.mjs +2 -2
  2. package/package.json +1 -1
package/dist/index.mjs CHANGED
@@ -126,14 +126,14 @@ function transformCode(code, registry) {
126
126
  if (!variable) continue;
127
127
  if (variable.usageCount == 0) continue;
128
128
  if (variable.deoptimized) {
129
- declarations.push(`${varName}: ${varValue}`);
129
+ declarations.push(`${varName}:${varValue}`);
130
130
  continue;
131
131
  }
132
132
  if (variable.mangledName) {
133
133
  const resolvedValue = resolveVariableValue(varName, registry);
134
134
  if (variable.emitDeclaration) {
135
135
  if (!emittedValues.has(resolvedValue)) {
136
- declarations.push(`${variable.mangledName}: ${resolvedValue}`);
136
+ declarations.push(`${variable.mangledName}:${resolvedValue}`);
137
137
  emittedValues.add(resolvedValue);
138
138
  }
139
139
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vite-plugin-token-shaker",
3
- "version": "0.0.4",
3
+ "version": "0.0.5",
4
4
  "description": "Clean up anything in @layer tokens",
5
5
  "type": "module",
6
6
  "license": "MIT",