Skip to content

Commit

Permalink
Support tailwind.config.js in default ESM format (#104)
Browse files Browse the repository at this point in the history
  • Loading branch information
johnbacon committed Jan 22, 2024
1 parent f21899a commit 1090878
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/resolveTailwindConfig.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ const fs = require('fs');

try {
const resolveConfig = require('tailwindcss/resolveConfig');
const config = require(process.env.CONFIGPATH);
const config = import(process.env.CONFIGPATH);
const tempDir = './tmp';
const outputPath = `${tempDir}/tailwind.config.php`;
const fullConfig = resolveConfig(config);
Expand Down

0 comments on commit 1090878

Please sign in to comment.