@riotjs/compiler
Advanced tools
Comparing version 5.1.0 to 5.1.1
{ | ||
"name": "@riotjs/compiler", | ||
"version": "5.1.0", | ||
"version": "5.1.1", | ||
"description": "Compiler for riot .tag files", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
@@ -16,2 +16,3 @@ import { | ||
import compose from 'cumpa' | ||
import {isNil} from '@riotjs/util/checks' | ||
import {nodeTypes} from '@riotjs/parser' | ||
@@ -43,3 +44,3 @@ import {types} from '../../utils/build-types' | ||
export function isRemovableNode(node) { | ||
return isTemplateNode(node) && findAttribute(SLOT_ATTRIBUTE, node) && !hasEachAttribute(node) && !hasIfAttribute(node) | ||
return isTemplateNode(node) && !isNil(findAttribute(SLOT_ATTRIBUTE, node)) && !hasEachAttribute(node) && !hasIfAttribute(node) | ||
} | ||
@@ -46,0 +47,0 @@ |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
2066912
54383