From 9bdb95c9e34cef640534e5e5a1e2225a80442000 Mon Sep 17 00:00:00 2001
From: HelenHuang <LinHuang@pollex.com.tw>
Date: 星期四, 09 六月 2022 15:48:15 +0800
Subject: [PATCH] TODO#139894 [ footer -最下方說明與保經代合作 ] 文案修改

---
 PAMapp/node_modules/postcss-preset-env/index.js |   24 ++++++++++++++++++++----
 1 files changed, 20 insertions(+), 4 deletions(-)

diff --git a/PAMapp/node_modules/postcss-preset-env/index.js b/PAMapp/node_modules/postcss-preset-env/index.js
index 289bdbc..a06874b 100644
--- a/PAMapp/node_modules/postcss-preset-env/index.js
+++ b/PAMapp/node_modules/postcss-preset-env/index.js
@@ -298,9 +298,7 @@
 }
 
 function writeToExports(customExports, destinations) {
-  return Promise.all([].concat(destinations).map(
-  /*#__PURE__*/
-  function () {
+  return Promise.all([].concat(destinations).map( /*#__PURE__*/function () {
     var _ref = _asyncToGenerator(function* (destination) {
       if (destination instanceof Function) {
         yield destination({
@@ -439,7 +437,25 @@
     ignoreUnknownVersions: true
   }).some(polyfillBrowser => polyfillBrowser === supportedBrowser)));
   return (root, result) => {
-    // polyfills run in execution order
+    const majorVersion = parseInt(result.processor.version.split('.')[0]);
+
+    if (majorVersion > 7) {
+      console.log('');
+      console.log(`
+����������������������������������������������������������������������������������������������������������������������������������������������������������������������
+���                                                                                 ���
+���   This version of postcss-preset-env is not optimised to work with PostCSS 8.   ���
+���                Please update to version 7 of PostCSS Preset Env.                ���
+���                                                                                 ���
+���                    If you find issues, you can report it at:                    ���
+���          https://github.com/csstools/postcss-plugins/issues/new/choose          ���
+���                                                                                 ���
+����������������������������������������������������������������������������������������������������������������������������������������������������������������������
+			`);
+      console.log('');
+    } // polyfills run in execution order
+
+
     const polyfills = supportedFeatures.reduce((promise, feature) => promise.then(() => feature.plugin(result.root, result)), Promise.resolve()).then(() => stagedAutoprefixer(result.root, result)).then(() => {
       if (Object(opts).exportTo) {
         writeToExports(sharedOpts.exportTo, opts.exportTo);

--
Gitblit v1.8.0