Add default interop to public available functions (#6348)

* add `default` interop to public available functions

* update changelog
This commit is contained in:
Robin Malfait 2021-12-10 11:25:10 +01:00 committed by GitHub
parent 81f52a24f4
commit b399e8db90
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
6 changed files with 12 additions and 6 deletions

View File

@ -9,7 +9,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
### Fixed
- Ensure complex variants with multiple classes work [#6311](https://github.com/tailwindlabs/tailwindcss/pull/6311)
- Ensure complex variants with multiple classes work ([#6311](https://github.com/tailwindlabs/tailwindcss/pull/6311))
- Re-add `default` interop to public available functions ([#6348](https://github.com/tailwindlabs/tailwindcss/pull/6348))
## [3.0.0] - 2021-12-09

View File

@ -1 +1,2 @@
module.exports = require('./lib/public/colors').default
let colors = require('./lib/public/colors')
module.exports = (colors.__esModule ? colors : { default: colors }).default

View File

@ -1 +1,2 @@
module.exports = require('./lib/public/default-config').default
let defaultConfig = require('./lib/public/default-config')
module.exports = (defaultConfig.__esModule ? defaultConfig : { default: defaultConfig }).default

View File

@ -1 +1,2 @@
module.exports = require('./lib/public/default-theme').default
let defaultTheme = require('./lib/public/default-theme')
module.exports = (defaultTheme.__esModule ? defaultTheme : { default: defaultTheme }).default

View File

@ -1 +1,2 @@
module.exports = require('./lib/public/create-plugin').default
let createPlugin = require('./lib/public/create-plugin')
module.exports = (createPlugin.__esModule ? createPlugin : { default: createPlugin }).default

View File

@ -1 +1,2 @@
module.exports = require('./lib/public/resolve-config').default
let resolveConfig = require('./lib/public/resolve-config')
module.exports = (resolveConfig.__esModule ? resolveConfig : { default: resolveConfig }).default