postcss-preset-env
Advanced tools
Comparing version 6.7.0 to 6.7.1
24
index.js
@@ -301,5 +301,3 @@ 'use strict'; | ||
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) { | ||
@@ -443,3 +441,21 @@ if (destination instanceof Function) { | ||
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(() => { | ||
@@ -446,0 +462,0 @@ if (Object(opts).exportTo) { |
{ | ||
"name": "postcss-preset-env", | ||
"version": "6.7.0", | ||
"version": "6.7.1", | ||
"description": "Convert modern CSS into something browsers understand", | ||
@@ -20,3 +20,2 @@ "author": "Jonathan Neal <jonathantneal@hotmail.com>", | ||
"build": "rollup -c .rollup.js --silent", | ||
"prepublishOnly": "npm test", | ||
"pretest:tape": "npm run build", | ||
@@ -23,0 +22,0 @@ "test": "npm run test:js && npm run test:tape", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
866
140044
7