summaryrefslogtreecommitdiff
path: root/node_modules/postcss/lib/container.js
diff options
context:
space:
mode:
authorlittleblack111 <littleblack11111@gmail.com>2024-03-27 15:44:30 +0800
committerlittleblack111 <littleblack11111@gmail.com>2024-03-27 15:44:30 +0800
commit1c0387549700d9ce64918fb5536e37350757c7dd (patch)
tree8f27183c1f6f698afdc49017ed19821360280b51 /node_modules/postcss/lib/container.js
parentbd543050c40bb988689fc20304bba0d8b4398a80 (diff)
updates
Diffstat (limited to 'node_modules/postcss/lib/container.js')
-rw-r--r--node_modules/postcss/lib/container.js2
1 files changed, 2 insertions, 0 deletions
diff --git a/node_modules/postcss/lib/container.js b/node_modules/postcss/lib/container.js
index 914c0530..462e3f0d 100644
--- a/node_modules/postcss/lib/container.js
+++ b/node_modules/postcss/lib/container.js
@@ -173,6 +173,8 @@ class Container extends Node {
normalize(nodes, sample) {
if (typeof nodes === 'string') {
nodes = cleanSource(parse(nodes).nodes)
+ } else if (typeof nodes === 'undefined') {
+ nodes = []
} else if (Array.isArray(nodes)) {
nodes = nodes.slice(0)
for (let i of nodes) {