mdx-bundler
Advanced tools
Comparing version 10.0.1 to 10.0.2
@@ -12,6 +12,7 @@ "use strict"; | ||
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); } | ||
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; } | ||
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; } | ||
/** | ||
* @typedef {import('./types').MDXContentProps} MDXContentProps | ||
*/ | ||
/** | ||
@@ -18,0 +19,0 @@ * |
@@ -18,3 +18,3 @@ "use strict"; | ||
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); } | ||
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; } | ||
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; } | ||
const { | ||
@@ -21,0 +21,0 @@ readFile, |
@@ -9,3 +9,3 @@ // This file is for defining types that are annoying to define with jsdoc syntax | ||
import type {ModuleInfo} from '@fal-works/esbuild-plugin-global-externals' | ||
import type {ProcessorOptions} from '@mdx-js/esbuild/lib' | ||
import type {Options} from '@mdx-js/esbuild/lib' | ||
import type {GrayMatterOption, Input, GrayMatterFile} from 'gray-matter' | ||
@@ -92,5 +92,5 @@ import type {MDXComponents} from 'mdx/types' | ||
mdxOptions?: ( | ||
options: ProcessorOptions, | ||
options: Options, | ||
frontmatter: Frontmatter, | ||
) => ProcessorOptions | ||
) => Options | ||
/** | ||
@@ -97,0 +97,0 @@ * This allows you to modify the built-in esbuild configuration. This can be |
{ | ||
"name": "mdx-bundler", | ||
"version": "10.0.1", | ||
"version": "10.0.2", | ||
"description": "Compile and bundle your MDX files and their dependencies. FAST.", | ||
@@ -72,3 +72,3 @@ "main": "dist/index.js", | ||
"react-dom": "^18.2.0", | ||
"remark-mdx-images": "^2.0.0", | ||
"remark-mdx-images": "^3.0.0", | ||
"typescript": "^5.2.2", | ||
@@ -75,0 +75,0 @@ "uvu": "^0.5.6" |
@@ -28,3 +28,3 @@ <div align="center"> | ||
This is an async function that will compile and bundle your MDX files and their | ||
dependencies. It uses [MDX v2](https://mdxjs.com/blog/v2/) and | ||
dependencies. It uses [MDX v3](https://mdxjs.com/blog/v3/) and | ||
[esbuild](https://esbuild.github.io/), so it's VERY fast and supports TypeScript | ||
@@ -31,0 +31,0 @@ files (for the dependencies of your MDX files). |
56424