Skip to content

Commit d3440c1

Browse files
Remove process.env.VERSION check (#14531)
Fixes #14523
1 parent fad5c81 commit d3440c1

File tree

1 file changed

+1
-9
lines changed

1 file changed

+1
-9
lines changed

packages/tailwindcss/src/index.ts

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -395,7 +395,7 @@ export async function compile(
395395
})
396396

397397
if (process.env.NODE_ENV !== 'test') {
398-
ast.unshift(comment(`! tailwindcss v${getVersion()} | MIT License | https://tailwindcss.com `))
398+
ast.unshift(comment(`! tailwindcss v${version} | MIT License | https://tailwindcss.com `))
399399
}
400400

401401
// Track all invalid candidates
@@ -459,14 +459,6 @@ export async function __unstable__loadDesignSystem(css: string, opts: CompileOpt
459459
return result.designSystem
460460
}
461461

462-
function getVersion() {
463-
if (process.env.VERSION) {
464-
return process.env.VERSION
465-
} else {
466-
return version
467-
}
468-
}
469-
470462
export default function postcssPluginWarning() {
471463
throw new Error(
472464
`It looks like you're trying to use \`tailwindcss\` directly as a PostCSS plugin. The PostCSS plugin has moved to a separate package, so to continue using Tailwind CSS with PostCSS you'll need to install \`@tailwindcss/postcss\` and update your PostCSS configuration.`,

0 commit comments

Comments
 (0)