@riotjs/compiler
Advanced tools
Comparing version 4.0.0-beta.5 to 4.0.0
{ | ||
"name": "@riotjs/compiler", | ||
"version": "4.0.0-beta.5", | ||
"version": "4.0.0", | ||
"description": "Compiler for riot .tag files", | ||
@@ -41,11 +41,11 @@ "main": "dist/index.js", | ||
"eslint-config-riot": "^2.0.0", | ||
"mocha": "^6.0.2", | ||
"nyc": "^13.3.0", | ||
"mocha": "^6.1.4", | ||
"nyc": "^14.0.0", | ||
"reify": "^0.18.1", | ||
"rollup": "^1.7.4", | ||
"rollup": "^1.10.1", | ||
"rollup-plugin-alias": "^1.5.1", | ||
"rollup-plugin-commonjs": "^9.2.2", | ||
"rollup-plugin-commonjs": "^9.3.4", | ||
"rollup-plugin-json": "^4.0.0", | ||
"rollup-plugin-node-builtins": "^2.1.2", | ||
"rollup-plugin-node-resolve": "^4.0.1", | ||
"rollup-plugin-node-resolve": "^4.2.3", | ||
"shelljs": "^0.8.3" | ||
@@ -60,3 +60,3 @@ }, | ||
"dependencies": { | ||
"@riotjs/dom-bindings": "^0.11.3", | ||
"@riotjs/dom-bindings": "^1.0.0", | ||
"@riotjs/parser": "^0.8.1", | ||
@@ -63,0 +63,0 @@ "cumpa": "^1.0.1", |
@@ -8,2 +8,8 @@ [![Build Status][travis-image]][travis-url] | ||
## Important | ||
This compiler will not work with older Riot.js versions. | ||
It's designed to work with Riot.js > 4.0.0. | ||
For Riot.js < 4.0.0 please check the [v3](https://github.com/riot/compiler/tree/v3) branch | ||
## Installation | ||
@@ -10,0 +16,0 @@ |
@@ -143,3 +143,9 @@ import { TAG_CSS_PROPERTY, TAG_LOGIC_PROPERTY, TAG_NAME_PROPERTY, TAG_TEMPLATE_PROPERTY } from './constants' | ||
function hookGenerator(transformer, sourceNode, source, meta) { | ||
if (!sourceNode || (sourceNode.nodes && !sourceNode.nodes.length)) { | ||
if ( | ||
// filter missing nodes | ||
!sourceNode || | ||
// filter nodes without children | ||
(sourceNode.nodes && !sourceNode.nodes.length) || | ||
// filter empty javascript and css nodes | ||
(!sourceNode.nodes && !sourceNode.text)) { | ||
return result => result | ||
@@ -146,0 +152,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
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
1241109
31940
0
101
+ Added@riotjs/dom-bindings@1.0.0(transitive)
- Removed@riotjs/dom-bindings@0.11.3(transitive)
Updated@riotjs/dom-bindings@^1.0.0