@riotjs/compiler
Advanced tools
Comparing version 4.3.4 to 4.3.5
# Compiler Changes | ||
### v4.3.5 | ||
- Fix backslashed unicode css properties | ||
### v4.3.4 | ||
@@ -4,0 +7,0 @@ - Fix escape backslashes in css strings https://github.com/riot/riot/issues/2726 |
{ | ||
"name": "@riotjs/compiler", | ||
"version": "4.3.4", | ||
"version": "4.3.5", | ||
"description": "Compiler for riot .tag files", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
@@ -86,2 +86,6 @@ import {builders, types} from '../../utils/build-types' | ||
const escapeIdentifier = identifier => JSON.stringify(cssEscape(identifier, { | ||
isIdentifier: true | ||
})).replace(/"$|^"/g, '') | ||
/** | ||
@@ -100,9 +104,7 @@ * Generate the component css | ||
const preprocessorOutput = preprocess('css', preprocessorName, meta, cssNode) | ||
const escapedCssIdentifier = cssEscape(meta.tagName, { | ||
isIdentifier: true | ||
}).replace(/\\/, '\\') | ||
const escapedCssIdentifier = escapeIdentifier(meta.tagName) | ||
const cssCode = (options.scopedCss ? | ||
scopedCSS(escapedCssIdentifier, preprocessorOutput.code) : | ||
preprocessorOutput.code | ||
scopedCSS(escapedCssIdentifier, cssEscape(preprocessorOutput.code)) : | ||
cssEscape(preprocessorOutput.code) | ||
).trim() | ||
@@ -109,0 +111,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
1463852
37187