Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove process.env.VERSION check #14531

Merged
merged 1 commit into from
Sep 27, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 1 addition & 9 deletions packages/tailwindcss/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -395,7 +395,7 @@ export async function compile(
})

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

// Track all invalid candidates
Expand Down Expand Up @@ -459,14 +459,6 @@ export async function __unstable__loadDesignSystem(css: string, opts: CompileOpt
return result.designSystem
}

function getVersion() {
if (process.env.VERSION) {
return process.env.VERSION
} else {
return version
}
}

export default function postcssPluginWarning() {
throw new Error(
`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.`,
Expand Down