diff --git a/src/resolveTailwindConfig.js b/src/resolveTailwindConfig.js index 71a0cbd..5d80f66 100644 --- a/src/resolveTailwindConfig.js +++ b/src/resolveTailwindConfig.js @@ -21,7 +21,10 @@ function parseConfig(data) { async function resolveTailwindConfig() { const fs = await import('fs'); const { default: resolveConfig } = await import('tailwindcss/resolveConfig.js') - const { default: config } = await import(process.env.CONFIGPATH) + + const { pathToFileURL } = await import('url'); + const configPath = pathToFileURL(process.env.CONFIGPATH).href; + const { default: config } = await import(configPath) const fullConfig = resolveConfig(config);