Skip to content

Commit 7920850

Browse files
authored
Temporarily remove optional chaining in nesting plugin (#7077)
* 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! * update changelog
1 parent 6936087 commit 7920850

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

CHANGELOG.md

+3-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
77

88
## [Unreleased]
99

10-
- Nothing yet!
10+
### Fixed
11+
12+
- Temporarily remove optional chaining in nesting plugin ([#7077](https://github.com/tailwindlabs/tailwindcss/pull/7077))
1113

1214
## [3.0.14] - 2022-01-14
1315

nesting/plugin.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ module.exports = function nesting(opts = postcssNested) {
1616
let plugin = (() => {
1717
if (
1818
typeof opts === 'function' ||
19-
(typeof opts === 'object' && opts?.hasOwnProperty('postcssPlugin'))
19+
(typeof opts === 'object' && opts.hasOwnProperty('postcssPlugin'))
2020
) {
2121
return opts
2222
}

0 commit comments

Comments
 (0)