Skip to content

Commit

Permalink
Add extentions to tailwind plugin require statements
Browse files Browse the repository at this point in the history
  • Loading branch information
techniq committed Mar 7, 2024
1 parent 967a647 commit 0a777e7
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
5 changes: 5 additions & 0 deletions .changeset/moody-moons-taste.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"svelte-ux": patch
---

Add extentions to tailwind plugin require statements
6 changes: 3 additions & 3 deletions packages/svelte-ux/src/lib/plugins/tailwind.cjs
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
const plugin = require('tailwindcss/plugin');

const { createThemeColors, injectThemes } = require('./tailwind/theme');
const colorMix = require('./tailwind/colorMix');
const elevation = require('./tailwind/elevation');
const { createThemeColors, injectThemes } = require('./tailwind/theme.cjs');
const colorMix = require('./tailwind/colorMix.cjs');
const elevation = require('./tailwind/elevation.cjs');

// TODO: Type options (convert to Typescript and use generic argument, or use jsdoc?)
module.exports = plugin.withOptions(
Expand Down

0 comments on commit 0a777e7

Please sign in to comment.