Make the ESM cache hook ESM-only

This commit is contained in:
Jordan Pittman 2024-08-23 14:15:25 -04:00 • committed by Philipp Spiess
parent 1b848f38b0
commit 85d6da4884
5 changed files with 7 additions and 9 deletions

View file

@ -1,5 +1,3 @@
import '@tailwindcss/node/esm-cache-hook'
import watcher from '@parcel/watcher'
import { getModuleDependencies } from '@tailwindcss/node'
import { clearRequireCache } from '@tailwindcss/node/require-cache'
@ -63,6 +61,8 @@ export function options() {
}
export async function handle(args: Result<ReturnType<typeof options>>) {
await import('@tailwindcss/node/esm-cache-hook')
let base = path.resolve(args['--cwd'])
// Resolve the output as an absolute path.