@useavalon/avalon 0.1.21 → 0.1.22
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.
|
@@ -1 +1 @@
|
|
|
1
|
-
export async function createMDXPlugin(e={}){let{remarkPlugins:t=[],rehypePlugins:n=[],development:r=!1,jsxImportSource:i=`preact`,syntaxHighlighting:a=!0}=e;try{let{default:e}=await import(`@mdx-js/rollup`),{default:o}=await import(`remark-frontmatter`),{default:s}=await import(`remark-mdx-frontmatter`),{default:c}=await import(`remark-gfm`),l=[];if(a)try{let{default:e}=await import(`rehype-highlight`);l.push(e)}catch{console.warn(`[avalon:mdx] rehype-highlight not
|
|
1
|
+
export async function createMDXPlugin(e={}){let{remarkPlugins:t=[],rehypePlugins:n=[],development:r=!1,jsxImportSource:i=`preact`,syntaxHighlighting:a=!0}=e;try{let{default:e}=await import(`@mdx-js/rollup`),{default:o}=await import(`remark-frontmatter`),{default:s}=await import(`remark-mdx-frontmatter`),{default:c}=await import(`remark-gfm`),l=[];if(a)try{let{default:e}=await import(`rehype-highlight`);l.push(e)}catch{console.warn(`[avalon:mdx] rehype-highlight not installed, syntax highlighting disabled. Install it with: npm install rehype-highlight`)}return l.push(...n),[e({remarkPlugins:[o,s,c,...t],rehypePlugins:l,jsxImportSource:i,development:r,format:`mdx`})]}catch(e){let t=e instanceof Error?e.message:String(e);return console.error(`❌ Failed to configure MDX plugin:`,t),console.warn(`💡 Install missing dependencies or check import map`),console.warn(`⚠️ MDX plugin disabled - .mdx files will not be processed`),[]}}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@useavalon/avalon",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.22",
|
|
4
4
|
"description": "Multi-framework islands architecture for the modern web",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
|
@@ -66,7 +66,8 @@
|
|
|
66
66
|
"peerDependencies": {
|
|
67
67
|
"vite": "^8.0.0",
|
|
68
68
|
"nitro": "^3.0.260311-beta",
|
|
69
|
-
"vite-imagetools": "^7.0.0"
|
|
69
|
+
"vite-imagetools": "^7.0.0",
|
|
70
|
+
"rehype-highlight": "^7.0.0"
|
|
70
71
|
},
|
|
71
72
|
"peerDependenciesMeta": {
|
|
72
73
|
"nitro": {
|
|
@@ -77,6 +78,9 @@
|
|
|
77
78
|
},
|
|
78
79
|
"vite-imagetools": {
|
|
79
80
|
"optional": true
|
|
81
|
+
},
|
|
82
|
+
"rehype-highlight": {
|
|
83
|
+
"optional": true
|
|
80
84
|
}
|
|
81
85
|
},
|
|
82
86
|
"dependencies": {
|
|
@@ -87,7 +91,6 @@
|
|
|
87
91
|
"oxc-transform": "^0.117.0",
|
|
88
92
|
"preact": "10.28.4",
|
|
89
93
|
"preact-render-to-string": "6.6.6",
|
|
90
|
-
"rehype-highlight": "^7.0.0",
|
|
91
94
|
"remark-frontmatter": "^5.0.0",
|
|
92
95
|
"remark-gfm": "^4.0.0",
|
|
93
96
|
"remark-mdx-frontmatter": "^5.0.0",
|