Make the ESM cache hook ESM-only
This commit is contained in:
parent
1b848f38b0
commit
85d6da4884
5 changed files with 7 additions and 9 deletions
|
|
@ -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.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue