Skip to content

Commit 2fb33ee

Browse files
authored
Update package version import to allow for tree-shaking (#5629)
1 parent 8004917 commit 2fb33ee

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/corePlugins.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ import {
1717
transformAllClasses,
1818
transformLastClasses,
1919
} from './util/pluginUtils'
20-
import packageJson from '../package.json'
20+
import { version as tailwindVersion } from '../package.json'
2121
import log from './util/log'
2222

2323
export default {
@@ -361,7 +361,7 @@ export default {
361361

362362
addBase([
363363
postcss.comment({
364-
text: `! tailwindcss v${packageJson.version} | MIT License | https://tailwindcss.com`,
364+
text: `! tailwindcss v${tailwindVersion} | MIT License | https://tailwindcss.com`,
365365
}),
366366
...preflightStyles.nodes,
367367
])

0 commit comments

Comments
 (0)