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,4 +0,0 @@
|
|||
import { register } from 'node:module'
|
||||
import { pathToFileURL } from 'node:url'
|
||||
|
||||
register(pathToFileURL(require.resolve('@tailwindcss/node/esm-cache-loader')))
|
||||
|
|
@ -17,6 +17,6 @@ export default defineConfig([
|
|||
format: ['cjs'],
|
||||
minify: true,
|
||||
dts: true,
|
||||
entry: ['src/esm-cache.hook.cts', 'src/require-cache.cts'],
|
||||
entry: ['src/require-cache.cts'],
|
||||
},
|
||||
])
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue