@teleporthq/teleport-plugin-css
Advanced tools
Comparing version
@@ -110,3 +110,3 @@ "use strict"; | ||
var _c = element.style, style = _c === void 0 ? {} : _c, key = element.key, _d = element.referencedStyles, referencedStyles = _d === void 0 ? {} : _d; | ||
if (!style && !referencedStyles) { | ||
if (Object.keys(style).length === 0 && Object.keys(referencedStyles).length === 0) { | ||
return; | ||
@@ -113,0 +113,0 @@ } |
@@ -87,3 +87,3 @@ var __assign = (this && this.__assign) || function () { | ||
var _c = element.style, style = _c === void 0 ? {} : _c, key = element.key, _d = element.referencedStyles, referencedStyles = _d === void 0 ? {} : _d; | ||
if (!style && !referencedStyles) { | ||
if (Object.keys(style).length === 0 && Object.keys(referencedStyles).length === 0) { | ||
return; | ||
@@ -90,0 +90,0 @@ } |
{ | ||
"name": "@teleporthq/teleport-plugin-css", | ||
"version": "0.19.1", | ||
"version": "0.19.4", | ||
"description": "A plugin for creating the styles into external css files", | ||
@@ -32,3 +32,3 @@ "author": "teleportHQ", | ||
}, | ||
"gitHead": "867b13813f8116524d52cdb5a458bb401a375a92" | ||
"gitHead": "03cce50311159baf7277ff96d772b4e4f1d911b4" | ||
} |
@@ -89,5 +89,6 @@ import { StringUtils, UIDLUtils } from '@teleporthq/teleport-shared' | ||
if (!style && !referencedStyles) { | ||
if (Object.keys(style).length === 0 && Object.keys(referencedStyles).length === 0) { | ||
return | ||
} | ||
const root = templateLookup[key] | ||
@@ -94,0 +95,0 @@ if (!root) { |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
135359
0.23%