update
This commit is contained in:
+20
-4
@@ -298,9 +298,7 @@ function _writeExportsToMjsFile() {
|
||||
}
|
||||
|
||||
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 @@ var postcss = postcss$1.plugin('postcss-preset-env', opts => {
|
||||
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);
|
||||
|
||||
+1
-1
File diff suppressed because one or more lines are too long
+20
-4
@@ -294,9 +294,7 @@ function _writeExportsToMjsFile() {
|
||||
}
|
||||
|
||||
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({
|
||||
@@ -435,7 +433,25 @@ var postcss = postcss$1.plugin('postcss-preset-env', opts => {
|
||||
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);
|
||||
|
||||
+1
-1
File diff suppressed because one or more lines are too long
+12
-13
@@ -1,32 +1,32 @@
|
||||
{
|
||||
"_args": [
|
||||
[
|
||||
"postcss-preset-env@6.7.0",
|
||||
"/mnt/Foxconn/Digitalent/Deverloper/liff-push_2series"
|
||||
"postcss-preset-env@6.7.1",
|
||||
"/home/node/nuxt"
|
||||
]
|
||||
],
|
||||
"_from": "postcss-preset-env@6.7.0",
|
||||
"_id": "postcss-preset-env@6.7.0",
|
||||
"_from": "postcss-preset-env@6.7.1",
|
||||
"_id": "postcss-preset-env@6.7.1",
|
||||
"_inBundle": false,
|
||||
"_integrity": "sha512-eU4/K5xzSFwUFJ8hTdTQzo2RBLbDVt83QZrAvI07TULOkmyQlnYlpwep+2yIK+K+0KlZO4BvFcleOCCcUtwchg==",
|
||||
"_integrity": "sha512-rlRkgX9t0v2On33n7TK8pnkcYOATGQSv48J2RS8GsXhqtg+xk6AummHP88Y5mJo0TLJelBjePvSjScTNkj3+qw==",
|
||||
"_location": "/postcss-preset-env",
|
||||
"_phantomChildren": {},
|
||||
"_requested": {
|
||||
"type": "version",
|
||||
"registry": true,
|
||||
"raw": "postcss-preset-env@6.7.0",
|
||||
"raw": "postcss-preset-env@6.7.1",
|
||||
"name": "postcss-preset-env",
|
||||
"escapedName": "postcss-preset-env",
|
||||
"rawSpec": "6.7.0",
|
||||
"rawSpec": "6.7.1",
|
||||
"saveSpec": null,
|
||||
"fetchSpec": "6.7.0"
|
||||
"fetchSpec": "6.7.1"
|
||||
},
|
||||
"_requiredBy": [
|
||||
"/@nuxt/webpack"
|
||||
],
|
||||
"_resolved": "https://registry.npmjs.org/postcss-preset-env/-/postcss-preset-env-6.7.0.tgz",
|
||||
"_spec": "6.7.0",
|
||||
"_where": "/mnt/Foxconn/Digitalent/Deverloper/liff-push_2series",
|
||||
"_resolved": "https://registry.npmjs.org/postcss-preset-env/-/postcss-preset-env-6.7.1.tgz",
|
||||
"_spec": "6.7.1",
|
||||
"_where": "/home/node/nuxt",
|
||||
"author": {
|
||||
"name": "Jonathan Neal",
|
||||
"email": "jonathantneal@hotmail.com"
|
||||
@@ -124,11 +124,10 @@
|
||||
},
|
||||
"scripts": {
|
||||
"build": "rollup -c .rollup.js --silent",
|
||||
"prepublishOnly": "npm test",
|
||||
"pretest:tape": "npm run build",
|
||||
"test": "npm run test:js && npm run test:tape",
|
||||
"test:js": "eslint src/*.js src/lib/*.js src/patch/*.js --cache --ignore-path .gitignore --quiet",
|
||||
"test:tape": "postcss-tape"
|
||||
},
|
||||
"version": "6.7.0"
|
||||
"version": "6.7.1"
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user