From 9382e8934442030693a7a9eebe49ea6259d1fb1c Mon Sep 17 00:00:00 2001 From: Robin Malfait Date: Sat, 15 Jan 2022 02:27:57 +0100 Subject: [PATCH 1/2] remove optional chaining This breaks on Node versions lower than version 13. Normally we transpile everything, but we currently don't do this for the nesting plugin since it is not really part of the `src` folder. Will get this fixed in a better way, but for now this is a quick fix to get everything working again! --- nesting/plugin.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nesting/plugin.js b/nesting/plugin.js index 2b5586648464..b286ad1d6864 100644 --- a/nesting/plugin.js +++ b/nesting/plugin.js @@ -16,7 +16,7 @@ module.exports = function nesting(opts = postcssNested) { let plugin = (() => { if ( typeof opts === 'function' || - (typeof opts === 'object' && opts?.hasOwnProperty('postcssPlugin')) + (typeof opts === 'object' && opts.hasOwnProperty('postcssPlugin')) ) { return opts } From 56aaf1e98f7b5b3470a73cc333521dda4702e76b Mon Sep 17 00:00:00 2001 From: Robin Malfait Date: Sat, 15 Jan 2022 02:30:22 +0100 Subject: [PATCH 2/2] update changelog --- CHANGELOG.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 6f3bb0527225..95334432aff0 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,7 +7,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## [Unreleased] -- Nothing yet! +### Fixed + +- Temporarily remove optional chaining in nesting plugin ([#7077](https://github.com/tailwindlabs/tailwindcss/pull/7077)) ## [3.0.14] - 2022-01-14