@swissquote/crafty-preset-lightningcss 1.29.0-beta.3 → 1.29.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -9740,7 +9740,10 @@ class LazyResult {
|
|
|
9740
9740
|
if (str.stringify) str = str.stringify
|
|
9741
9741
|
|
|
9742
9742
|
let rootSource = this.result.root.source
|
|
9743
|
-
if (
|
|
9743
|
+
if (
|
|
9744
|
+
opts.map === undefined &&
|
|
9745
|
+
!(rootSource && rootSource.input && rootSource.input.map)
|
|
9746
|
+
) {
|
|
9744
9747
|
let result = ''
|
|
9745
9748
|
str(this.result.root, i => {
|
|
9746
9749
|
result += i
|
|
@@ -11935,7 +11938,7 @@ let Root = __nccwpck_require__(6265)
|
|
|
11935
11938
|
|
|
11936
11939
|
class Processor {
|
|
11937
11940
|
constructor(plugins = []) {
|
|
11938
|
-
this.version = '8.5.
|
|
11941
|
+
this.version = '8.5.14'
|
|
11939
11942
|
this.plugins = this.normalize(plugins)
|
|
11940
11943
|
}
|
|
11941
11944
|
|
|
@@ -12242,22 +12245,15 @@ class Stringifier {
|
|
|
12242
12245
|
}
|
|
12243
12246
|
|
|
12244
12247
|
block(node, start) {
|
|
12245
|
-
let
|
|
12246
|
-
let between = typeof raws.between !== 'undefined'
|
|
12247
|
-
? raws.between
|
|
12248
|
-
: this.raw(node, 'between', 'beforeOpen')
|
|
12248
|
+
let between = this.raw(node, 'between', 'beforeOpen')
|
|
12249
12249
|
this.builder(escapeHTMLInCSS(start + between) + '{', node, 'start')
|
|
12250
12250
|
|
|
12251
12251
|
let after
|
|
12252
12252
|
if (node.nodes && node.nodes.length) {
|
|
12253
12253
|
this.body(node)
|
|
12254
|
-
after =
|
|
12255
|
-
? raws.after
|
|
12256
|
-
: this.raw(node, 'after')
|
|
12254
|
+
after = this.raw(node, 'after')
|
|
12257
12255
|
} else {
|
|
12258
|
-
after =
|
|
12259
|
-
? raws.after
|
|
12260
|
-
: this.raw(node, 'after', 'emptyBody')
|
|
12256
|
+
after = this.raw(node, 'after', 'emptyBody')
|
|
12261
12257
|
}
|
|
12262
12258
|
|
|
12263
12259
|
if (after) this.builder(escapeHTMLInCSS(after))
|
|
@@ -12276,36 +12272,23 @@ class Stringifier {
|
|
|
12276
12272
|
let isDocument = node.type === 'document'
|
|
12277
12273
|
for (let i = 0; i < nodes.length; i++) {
|
|
12278
12274
|
let child = nodes[i]
|
|
12279
|
-
let before = child
|
|
12280
|
-
if (typeof before === 'undefined') {
|
|
12281
|
-
before = this.raw(child, 'before')
|
|
12282
|
-
}
|
|
12275
|
+
let before = this.raw(child, 'before')
|
|
12283
12276
|
if (before) this.builder(isDocument ? before : escapeHTMLInCSS(before))
|
|
12284
12277
|
this.stringify(child, last !== i || semicolon)
|
|
12285
12278
|
}
|
|
12286
12279
|
}
|
|
12287
12280
|
|
|
12288
12281
|
comment(node) {
|
|
12289
|
-
let
|
|
12290
|
-
let
|
|
12291
|
-
? raws.left
|
|
12292
|
-
: this.raw(node, 'left', 'commentLeft')
|
|
12293
|
-
let right = typeof raws.right !== 'undefined'
|
|
12294
|
-
? raws.right
|
|
12295
|
-
: this.raw(node, 'right', 'commentRight')
|
|
12282
|
+
let left = this.raw(node, 'left', 'commentLeft')
|
|
12283
|
+
let right = this.raw(node, 'right', 'commentRight')
|
|
12296
12284
|
this.builder(escapeHTMLInCSS('/*' + left + node.text + right + '*/'), node)
|
|
12297
12285
|
}
|
|
12298
12286
|
|
|
12299
12287
|
decl(node, semicolon) {
|
|
12300
12288
|
let raws = node.raws
|
|
12301
|
-
let between =
|
|
12302
|
-
? raws.between
|
|
12303
|
-
: this.raw(node, 'between', 'colon')
|
|
12304
|
-
|
|
12305
|
-
let rawVal = raws.value
|
|
12306
|
-
let value = rawVal && rawVal.value === node.value ? rawVal.raw : node.value
|
|
12289
|
+
let between = this.raw(node, 'between', 'colon')
|
|
12307
12290
|
|
|
12308
|
-
let string = node.prop + between + value
|
|
12291
|
+
let string = node.prop + between + this.rawValue(node, 'value')
|
|
12309
12292
|
|
|
12310
12293
|
if (node.important) {
|
|
12311
12294
|
string += raws.important || ' !important'
|
|
@@ -13580,7 +13563,7 @@ module.exports = /*#__PURE__*/JSON.parse('{"title":"CSS Loader options","additio
|
|
|
13580
13563
|
/***/ ((module) => {
|
|
13581
13564
|
|
|
13582
13565
|
"use strict";
|
|
13583
|
-
module.exports = /*#__PURE__*/JSON.parse('{"name":"postcss","version":"8.5.
|
|
13566
|
+
module.exports = /*#__PURE__*/JSON.parse('{"name":"postcss","version":"8.5.14","description":"Tool for transforming styles with JS plugins","keywords":["css","manipulation","parser","postcss","preprocessor","rework","source map","transform","transpiler"],"homepage":"https://postcss.org/","bugs":{"url":"https://github.com/postcss/postcss/issues"},"license":"MIT","author":"Andrey Sitnik <andrey@sitnik.es>","repository":"postcss/postcss","funding":[{"type":"opencollective","url":"https://opencollective.com/postcss/"},{"type":"tidelift","url":"https://tidelift.com/funding/github/npm/postcss"},{"type":"github","url":"https://github.com/sponsors/ai"}],"main":"./lib/postcss.js","browser":{"./lib/terminal-highlight":false,"source-map-js":false,"path":false,"url":false,"fs":false},"types":"./lib/postcss.d.ts","exports":{".":{"import":"./lib/postcss.mjs","require":"./lib/postcss.js"},"./lib/at-rule":"./lib/at-rule.js","./lib/comment":"./lib/comment.js","./lib/container":"./lib/container.js","./lib/css-syntax-error":"./lib/css-syntax-error.js","./lib/declaration":"./lib/declaration.js","./lib/fromJSON":"./lib/fromJSON.js","./lib/input":"./lib/input.js","./lib/lazy-result":"./lib/lazy-result.js","./lib/no-work-result":"./lib/no-work-result.js","./lib/list":"./lib/list.js","./lib/map-generator":"./lib/map-generator.js","./lib/node":"./lib/node.js","./lib/parse":"./lib/parse.js","./lib/parser":"./lib/parser.js","./lib/postcss":"./lib/postcss.js","./lib/previous-map":"./lib/previous-map.js","./lib/processor":"./lib/processor.js","./lib/result":"./lib/result.js","./lib/root":"./lib/root.js","./lib/rule":"./lib/rule.js","./lib/stringifier":"./lib/stringifier.js","./lib/stringify":"./lib/stringify.js","./lib/symbols":"./lib/symbols.js","./lib/terminal-highlight":"./lib/terminal-highlight.js","./lib/tokenize":"./lib/tokenize.js","./lib/warn-once":"./lib/warn-once.js","./lib/warning":"./lib/warning.js","./package.json":"./package.json"},"dependencies":{"nanoid":"^3.3.11","picocolors":"^1.1.1","source-map-js":"^1.2.1"},"engines":{"node":"^10 || ^12 || >=14"}}');
|
|
13584
13567
|
|
|
13585
13568
|
/***/ }),
|
|
13586
13569
|
|