Skip to content

Commit

Permalink
bun version check
Browse files Browse the repository at this point in the history
  • Loading branch information
nobkd committed Jan 30, 2025
1 parent 3aae931 commit ede7d0e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
Binary file modified bun.lockb
Binary file not shown.
4 changes: 4 additions & 0 deletions packages/nuekit/src/builder.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,10 @@ export async function getCssBuilder(is_lcss) {

try {
cssBuilder = is_lcss ? await import(resolve('lightningcss', `file://${process.cwd()}/`)) : Bun
if (!is_lcss) {
const v = Bun.version.split('.').map(i => parseInt(i))
if (!((v[0] >= 1 && v[1] >= 2) || (v[0] == 1 && v[1] == 1 && v[2] >= 34))) throw new Error('Bun version too low')
}
return cssBuilder
} catch {
throw 'CSS bundler not found. Please use Bun >=1.1.34 or install lightningcss'
Expand Down

0 comments on commit ede7d0e

Please sign in to comment.