We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a6d1c0e commit 023c5d1Copy full SHA for 023c5d1
esm.mjs
@@ -2,4 +2,6 @@ import {fileURLToPath} from 'url'
2
import {createRequire} from 'module'
3
const require = createRequire(fileURLToPath(import.meta.url))
4
5
-export const {resolve, getFormat, transformSource} = require('./dist/esm').registerAndCreateEsmHooks()
+/** @type {import('./dist/esm')} */
6
+const esm = require('./dist/esm')
7
+export const {resolve, getFormat, transformSource} = esm.registerAndCreateEsmHooks()
0 commit comments