-
Notifications
You must be signed in to change notification settings - Fork 4.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Ensure to transpile the PostCSS Nesting plugin (tailwindcss/nesting) (#…
…7080) * ensure that we compile the postcss nesting plugin * re-add optional chaining This will allow us to be 100% sure that we can safely call hasOwnProperty in case we get some very strange objects. This will now also be compiled/transpiled by esbuild. * import the internal postcss nesting plugin This allows us to work on it without re-compiling while running tests. Just like we do with all other code. * update changelog
- Loading branch information
1 parent
61b68a2
commit 167668e
Showing
6 changed files
with
25 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,2 @@ | ||
let nesting = require('./plugin') | ||
|
||
module.exports = (opts) => { | ||
return { | ||
postcssPlugin: 'tailwindcss/nesting', | ||
Once(root, { result }) { | ||
return nesting(opts)(root, result) | ||
}, | ||
} | ||
} | ||
|
||
module.exports.postcss = true | ||
let nesting = require('../lib/postcss-plugins/nesting') | ||
module.exports = (nesting.__esModule ? nesting : { default: nesting }).default |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
import { nesting } from './plugin' | ||
|
||
export default Object.assign( | ||
function (opts) { | ||
return { | ||
postcssPlugin: 'tailwindcss/nesting', | ||
Once(root, { result }) { | ||
return nesting(opts)(root, result) | ||
}, | ||
} | ||
}, | ||
{ postcss: true } | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters