summaryrefslogtreecommitdiff
path: root/node_modules/postcss/lib/warn-once.js
diff options
context:
space:
mode:
authorChristian Cleberg <[email protected]>2026-04-18 22:32:53 -0500
committerChristian Cleberg <[email protected]>2026-04-18 22:32:53 -0500
commit580e798e16346eb894eb899edac82d2efdf40adc (patch)
tree6dec3b7db678f781138b40d34da37d21ac8fbe7d /node_modules/postcss/lib/warn-once.js
downloadbrand-bench-580e798e16346eb894eb899edac82d2efdf40adc.tar.gz
brand-bench-580e798e16346eb894eb899edac82d2efdf40adc.tar.bz2
brand-bench-580e798e16346eb894eb899edac82d2efdf40adc.zip
initial commit
Diffstat (limited to 'node_modules/postcss/lib/warn-once.js')
-rw-r--r--node_modules/postcss/lib/warn-once.js13
1 files changed, 13 insertions, 0 deletions
diff --git a/node_modules/postcss/lib/warn-once.js b/node_modules/postcss/lib/warn-once.js
new file mode 100644
index 0000000..316e1cf
--- /dev/null
+++ b/node_modules/postcss/lib/warn-once.js
@@ -0,0 +1,13 @@
+/* eslint-disable no-console */
+'use strict'
+
+let printed = {}
+
+module.exports = function warnOnce(message) {
+ if (printed[message]) return
+ printed[message] = true
+
+ if (typeof console !== 'undefined' && console.warn) {
+ console.warn(message)
+ }
+}