Skip to content

Commit

Permalink
Update package version import to allow for tree-shaking (#5629)
Browse files Browse the repository at this point in the history
  • Loading branch information
bradlc authored Sep 28, 2021
1 parent 8004917 commit 2fb33ee
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/corePlugins.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ import {
transformAllClasses,
transformLastClasses,
} from './util/pluginUtils'
import packageJson from '../package.json'
import { version as tailwindVersion } from '../package.json'
import log from './util/log'

export default {
Expand Down Expand Up @@ -361,7 +361,7 @@ export default {

addBase([
postcss.comment({
text: `! tailwindcss v${packageJson.version} | MIT License | https://tailwindcss.com`,
text: `! tailwindcss v${tailwindVersion} | MIT License | https://tailwindcss.com`,
}),
...preflightStyles.nodes,
])
Expand Down

0 comments on commit 2fb33ee

Please sign in to comment.