@docusaurus/mdx-loader 3.9.2-canary-6526 → 3.9.2-canary-6541
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/createMDXLoader.js +1 -1
- package/package.json +6 -6
- package/src/createMDXLoader.ts +1 -1
package/lib/createMDXLoader.js
CHANGED
|
@@ -11,7 +11,7 @@ exports.createMDXLoaderRule = createMDXLoaderRule;
|
|
|
11
11
|
const processor_1 = require("./processor");
|
|
12
12
|
async function normalizeOptions(optionsInput) {
|
|
13
13
|
// Because Jest doesn't like ESM / createProcessors()
|
|
14
|
-
if (process.env.
|
|
14
|
+
if (process.env.NODE_ENV === 'test' || process.env.JEST_WORKER_ID) {
|
|
15
15
|
return optionsInput;
|
|
16
16
|
}
|
|
17
17
|
let options = optionsInput;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@docusaurus/mdx-loader",
|
|
3
|
-
"version": "3.9.2-canary-
|
|
3
|
+
"version": "3.9.2-canary-6541",
|
|
4
4
|
"description": "Docusaurus Loader for MDX",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"types": "lib/index.d.ts",
|
|
@@ -18,9 +18,9 @@
|
|
|
18
18
|
},
|
|
19
19
|
"license": "MIT",
|
|
20
20
|
"dependencies": {
|
|
21
|
-
"@docusaurus/logger": "3.9.2-canary-
|
|
22
|
-
"@docusaurus/utils": "3.9.2-canary-
|
|
23
|
-
"@docusaurus/utils-validation": "3.9.2-canary-
|
|
21
|
+
"@docusaurus/logger": "3.9.2-canary-6541",
|
|
22
|
+
"@docusaurus/utils": "3.9.2-canary-6541",
|
|
23
|
+
"@docusaurus/utils-validation": "3.9.2-canary-6541",
|
|
24
24
|
"@mdx-js/mdx": "^3.0.0",
|
|
25
25
|
"@slorber/remark-comment": "^1.0.0",
|
|
26
26
|
"escape-html": "^1.0.3",
|
|
@@ -44,7 +44,7 @@
|
|
|
44
44
|
"webpack": "^5.88.1"
|
|
45
45
|
},
|
|
46
46
|
"devDependencies": {
|
|
47
|
-
"@docusaurus/types": "3.9.2-canary-
|
|
47
|
+
"@docusaurus/types": "3.9.2-canary-6541",
|
|
48
48
|
"@types/escape-html": "^1.0.2",
|
|
49
49
|
"@types/mdast": "^4.0.2",
|
|
50
50
|
"@types/stringify-object": "^3.3.1",
|
|
@@ -64,5 +64,5 @@
|
|
|
64
64
|
"engines": {
|
|
65
65
|
"node": ">=20.0"
|
|
66
66
|
},
|
|
67
|
-
"gitHead": "
|
|
67
|
+
"gitHead": "60ac4995b8bfb7a1b649eb7c7ae6e812222438c5"
|
|
68
68
|
}
|
package/src/createMDXLoader.ts
CHANGED
|
@@ -17,7 +17,7 @@ async function normalizeOptions(
|
|
|
17
17
|
optionsInput: Options & CreateOptions,
|
|
18
18
|
): Promise<Options> {
|
|
19
19
|
// Because Jest doesn't like ESM / createProcessors()
|
|
20
|
-
if (process.env.
|
|
20
|
+
if (process.env.NODE_ENV === 'test' || process.env.JEST_WORKER_ID) {
|
|
21
21
|
return optionsInput;
|
|
22
22
|
}
|
|
23
23
|
|