From 2fb33ee578dbb446fa89a2b89a1b0fe4b9e18f8c Mon Sep 17 00:00:00 2001 From: Brad Cornes Date: Tue, 28 Sep 2021 17:09:16 +0100 Subject: [PATCH] Update package version import to allow for tree-shaking (#5629) --- src/corePlugins.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/corePlugins.js b/src/corePlugins.js index 6d2dda708..ba6b454cb 100644 --- a/src/corePlugins.js +++ b/src/corePlugins.js @@ -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 { @@ -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, ])