@docusaurus/mdx-loader 3.10.1-canary-6604 → 3.10.1-canary-6608
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
CHANGED
|
@@ -10,8 +10,8 @@ exports.createMDXLoaderItem = createMDXLoaderItem;
|
|
|
10
10
|
exports.createMDXLoaderRule = createMDXLoaderRule;
|
|
11
11
|
const processor_1 = require("./processor");
|
|
12
12
|
async function normalizeOptions(optionsInput) {
|
|
13
|
-
//
|
|
14
|
-
if (process.env.NODE_ENV === 'test' || process.env.
|
|
13
|
+
// Skip eager processor creation in tests
|
|
14
|
+
if (process.env.NODE_ENV === 'test' || process.env.VITEST) {
|
|
15
15
|
return optionsInput;
|
|
16
16
|
}
|
|
17
17
|
let options = optionsInput;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"createMDXLoader.js","sourceRoot":"","sources":["../src/createMDXLoader.ts"],"names":[],"mappings":";AAAA;;;;;GAKG;;AAwCH,kDAOC;AAED,kDAYC;AA3DD,2CAA6C;AAQ7C,KAAK,UAAU,gBAAgB,CAC7B,YAAqC;IAErC,
|
|
1
|
+
{"version":3,"file":"createMDXLoader.js","sourceRoot":"","sources":["../src/createMDXLoader.ts"],"names":[],"mappings":";AAAA;;;;;GAKG;;AAwCH,kDAOC;AAED,kDAYC;AA3DD,2CAA6C;AAQ7C,KAAK,UAAU,gBAAgB,CAC7B,YAAqC;IAErC,yCAAyC;IACzC,IAAI,OAAO,CAAC,GAAG,CAAC,QAAQ,KAAK,MAAM,IAAI,OAAO,CAAC,GAAG,CAAC,MAAM,EAAE,CAAC;QAC1D,OAAO,YAAY,CAAC;IACtB,CAAC;IAED,IAAI,OAAO,GAAG,YAAY,CAAC;IAE3B,6EAA6E;IAC7E,2EAA2E;IAC3E,IAAI,CAAC,OAAO,CAAC,UAAU,EAAE,CAAC;QACxB,OAAO,GAAG,EAAC,GAAG,OAAO,EAAE,UAAU,EAAE,MAAM,IAAA,4BAAgB,EAAC,EAAC,OAAO,EAAC,CAAC,EAAC,CAAC;IACxE,CAAC;IAED,sEAAsE;IACtE,wDAAwD;IACxD,wEAAwE;IACxE,yEAAyE;IACzE,IAAI,OAAO,CAAC,qBAAqB,IAAI,OAAO,CAAC,GAAG,CAAC,QAAQ,KAAK,YAAY,EAAE,CAAC;QAC3E,OAAO,GAAG;YACR,GAAG,OAAO;YACV,kBAAkB,EAAE,IAAI,GAAG,EAAE;SAC9B,CAAC;IACJ,CAAC;IAED,OAAO,OAAO,CAAC;AACjB,CAAC;AAEM,KAAK,UAAU,mBAAmB,CACvC,OAAgC;IAEhC,OAAO;QACL,MAAM,EAAE,OAAO,CAAC,OAAO,CAAC,wBAAwB,CAAC;QACjD,OAAO,EAAE,MAAM,gBAAgB,CAAC,OAAO,CAAC;KACzC,CAAC;AACJ,CAAC;AAEM,KAAK,UAAU,mBAAmB,CAAC,EACxC,OAAO,EACP,OAAO,GAIR;IACC,OAAO;QACL,IAAI,EAAE,UAAU;QAChB,OAAO;QACP,GAAG,EAAE,CAAC,MAAM,mBAAmB,CAAC,OAAO,CAAC,CAAC;KAC1C,CAAC;AACJ,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@docusaurus/mdx-loader",
|
|
3
|
-
"version": "3.10.1-canary-
|
|
3
|
+
"version": "3.10.1-canary-6608",
|
|
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.10.1-canary-
|
|
22
|
-
"@docusaurus/utils": "3.10.1-canary-
|
|
23
|
-
"@docusaurus/utils-validation": "3.10.1-canary-
|
|
21
|
+
"@docusaurus/logger": "3.10.1-canary-6608",
|
|
22
|
+
"@docusaurus/utils": "3.10.1-canary-6608",
|
|
23
|
+
"@docusaurus/utils-validation": "3.10.1-canary-6608",
|
|
24
24
|
"@mdx-js/mdx": "^3.1.1",
|
|
25
25
|
"@slorber/remark-comment": "^1.0.0",
|
|
26
26
|
"escape-html": "^1.0.3",
|
|
@@ -44,7 +44,7 @@
|
|
|
44
44
|
"webpack": "^5.106.2"
|
|
45
45
|
},
|
|
46
46
|
"devDependencies": {
|
|
47
|
-
"@docusaurus/types": "3.10.1-canary-
|
|
47
|
+
"@docusaurus/types": "3.10.1-canary-6608",
|
|
48
48
|
"@types/escape-html": "^1.0.2",
|
|
49
49
|
"@types/mdast": "^4.0.2",
|
|
50
50
|
"@types/stringify-object": "^3.3.1",
|
|
@@ -54,8 +54,7 @@
|
|
|
54
54
|
"remark-mdx": "^3.1.1",
|
|
55
55
|
"remark-rehype": "^11.1.2",
|
|
56
56
|
"to-vfile": "^6.1.0",
|
|
57
|
-
"unist-builder": "^2.0.3"
|
|
58
|
-
"unist-util-remove-position": "^5.0.0"
|
|
57
|
+
"unist-builder": "^2.0.3"
|
|
59
58
|
},
|
|
60
59
|
"peerDependencies": {
|
|
61
60
|
"react": "^19.2.5",
|
|
@@ -64,5 +63,5 @@
|
|
|
64
63
|
"engines": {
|
|
65
64
|
"node": ">=24.14"
|
|
66
65
|
},
|
|
67
|
-
"gitHead": "
|
|
66
|
+
"gitHead": "8d2d0675c0ff9f65e9acb70b6a128967ff3e92ab"
|
|
68
67
|
}
|
package/src/createMDXLoader.ts
CHANGED
|
@@ -16,8 +16,8 @@ type CreateOptions = {
|
|
|
16
16
|
async function normalizeOptions(
|
|
17
17
|
optionsInput: Options & CreateOptions,
|
|
18
18
|
): Promise<Options> {
|
|
19
|
-
//
|
|
20
|
-
if (process.env.NODE_ENV === 'test' || process.env.
|
|
19
|
+
// Skip eager processor creation in tests
|
|
20
|
+
if (process.env.NODE_ENV === 'test' || process.env.VITEST) {
|
|
21
21
|
return optionsInput;
|
|
22
22
|
}
|
|
23
23
|
|