Skip to content

Commit

Permalink
type annotation in esm.mjs
Browse files Browse the repository at this point in the history
  • Loading branch information
cspotcode committed May 3, 2020
1 parent a6d1c0e commit 023c5d1
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion esm.mjs
Expand Up @@ -2,4 +2,6 @@ import {fileURLToPath} from 'url'
import {createRequire} from 'module'
const require = createRequire(fileURLToPath(import.meta.url))

export const {resolve, getFormat, transformSource} = require('./dist/esm').registerAndCreateEsmHooks()
/** @type {import('./dist/esm')} */
const esm = require('./dist/esm')
export const {resolve, getFormat, transformSource} = esm.registerAndCreateEsmHooks()

0 comments on commit 023c5d1

Please sign in to comment.