Skip to content

Commit

Permalink
fix(config): resolve tailwind styles loss in bun environment
Browse files Browse the repository at this point in the history
Change the export syntax in tailwind.config.js from CommonJS to ES modules.
This modification fixes the issue of missing Tailwind CSS styles when running
the application with bun.

Signed-off-by: Ivan Li <[email protected]>
  • Loading branch information
IvanLi-CN committed Oct 8, 2024
1 parent 04f3ba3 commit c1f3451
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tailwind.config.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import defaultTheme from 'tailwindcss/defaultTheme';
import typographyPlugin from '@tailwindcss/typography';

module.exports = {
export default {
content: ['./src/**/*.{astro,html,js,jsx,json,md,mdx,svelte,ts,tsx,vue}'],
theme: {
extend: {
Expand Down

0 comments on commit c1f3451

Please sign in to comment.