Skip to content

Commit

Permalink
fix: workaround for nuxt/ui#809
Browse files Browse the repository at this point in the history
  • Loading branch information
pi0 committed Feb 1, 2024
1 parent fe5dd49 commit 3a35c79
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions layers/core/app/modules/tailwind.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,16 @@
import { defineNuxtModule } from 'nuxt/kit'

// Remove deprecated color warnings for Bun
// https://github.com/nuxt/ui/issues/809
import { createRequire } from 'node:module'
const _require = createRequire(import.meta.url)
const defaultColors = _require('tailwindcss/colors.js')
delete defaultColors.lightBlue
delete defaultColors.warmGray
delete defaultColors.trueGray
delete defaultColors.coolGray
delete defaultColors.blueGray

export default defineNuxtModule({
setup(_, nuxt) {
if (nuxt.options._prepare) {
Expand Down

0 comments on commit 3a35c79

Please sign in to comment.