Skip to content

Commit

Permalink
Temporarily remove optional chaining in nesting plugin (#7077)
Browse files Browse the repository at this point in the history
* 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
  • Loading branch information
RobinMalfait committed Jan 15, 2022
1 parent 6936087 commit 7920850
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion CHANGELOG.md
Expand Up @@ -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

Expand Down
2 changes: 1 addition & 1 deletion nesting/plugin.js
Expand Up @@ -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
}
Expand Down

0 comments on commit 7920850

Please sign in to comment.