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 038bb68 commit 85c5dd0Copy full SHA for 85c5dd0
packages/loader/index.cjs
@@ -7,6 +7,10 @@
7
8
'use strict'
9
10
+// Note: we can’t export immediately, as TS generates broken types.
11
+// See: mdx-js/mdx#2386.
12
+module.exports = loader
13
+
14
/**
15
* Webpack loader
16
*
@@ -19,7 +23,7 @@
19
23
* @returns {undefined}
20
24
* Nothing.
21
25
*/
22
-module.exports = function (code) {
26
+function loader(code) {
27
const callback = this.async()
28
// Note that `import()` caches, so this should be fast enough.
29
import('./lib/index.js').then((module) => {
0 commit comments