Skip to content

Commit

Permalink
Move module.exports on top in @mdx-js/loader
Browse files Browse the repository at this point in the history
  • Loading branch information
remcohaszing committed Oct 27, 2023
1 parent 9f997e6 commit eb98247
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions packages/loader/index.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@

'use strict'

// Note: we can’t export immediately, as TS generates broken types.
// See: mdx-js/mdx#2386.
module.exports = loader

/**
* Webpack loader
*
Expand All @@ -26,5 +30,3 @@ function loader(code) {
return module.loader.call(this, code, callback)
})
}

module.exports = loader

0 comments on commit eb98247

Please sign in to comment.