Skip parsing inline JavaScript code in Less (#14109)

This commit is contained in:
fisker Cheung authored and GitHub committed 2023-01-30 13:31:23 +08:00
1 parent a26e8ace46
commit e01f86aa09
5 files changed
+79

No files matched your search

@@ -0,0 +1,11 @@
// Deprecated feature https://lesscss.org/usage/#less-options-enable-inline-javascript-deprecated-
.calcPxMixin() {
@functions: ~`(function() {
const designWidth = 3840
const actualWidth = 5760
this.calcPx = function(_) {
return _ * actualWidth / designWidth + 'px'
}
})()`
}