-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
8 changed files
with
10 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,15 +8,17 @@ | |
|
||
- Upgrade for MDX 2 **BREAKING CHANGE** | ||
- Switch to ESM only (it depends on `@mdx-js/mdx` that also switched to ESM only) **BREAKING CHANGE** | ||
- Add `exports` field in `package.json` | ||
- Add peer dependency on `@mdx-js/mdx` **BREAKING CHANGE** | ||
- Add support for `recmaPlugins` in addition to `rehypePlugins` and `remarkPlugins` in `MDX` props | ||
- `useMDX` can accept all kind of plugins | ||
- Add `isReady` in `useMDX` return object | ||
- Bundle size was reduced from [1.6 MB](https://bundlephobia.com/package/@blocz/[email protected]) to [23.7 kB](https://bundlephobia.com/package/@blocz/[email protected]-rc.2) (-98.5%) | ||
- Bundle size was reduced from [1.6 MB](https://bundlephobia.com/package/@blocz/[email protected]) to [21.9 kB](https://bundlephobia.com/package/@blocz/[email protected]) (-98.6%) | ||
|
||
### `@blocz/mdx-plugin-detect-imports` | ||
|
||
- Update for MDX 2 (but still in CJS, and compatible in ESM) | ||
- Add `exports` field in `package.json` | ||
- Can only be used in MDX async function (like `compile`) but not the sync ones (like `compileSync`) | ||
- Change format of `ImportStatement` to better represent named vs default exports: | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,7 +4,7 @@ | |
"packages/*", | ||
"tests/*" | ||
], | ||
"version": "0.2.0-rc.9", | ||
"version": "0.2.0", | ||
"repository": "[email protected]:bloczjs/mdx.git", | ||
"author": "Ayc0 <[email protected]>", | ||
"license": "MIT", | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
{ | ||
"name": "@blocz/esbuild-test", | ||
"version": "0.2.0-rc.9", | ||
"version": "0.2.0", | ||
"private": true, | ||
"author": "Ayc0 <[email protected]>", | ||
"license": "MIT", | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
{ | ||
"name": "@blocz/mdx-js-test", | ||
"version": "0.2.0-rc.9", | ||
"version": "0.2.0", | ||
"private": true, | ||
"author": "Ayc0 <[email protected]>", | ||
"license": "MIT", | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
{ | ||
"name": "@blocz/rollup-test", | ||
"version": "0.2.0-rc.9", | ||
"version": "0.2.0", | ||
"private": true, | ||
"author": "Ayc0 <[email protected]>", | ||
"license": "MIT", | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
{ | ||
"name": "@blocz/webpack-test", | ||
"version": "0.2.0-rc.9", | ||
"version": "0.2.0", | ||
"private": true, | ||
"author": "Ayc0 <[email protected]>", | ||
"license": "MIT", | ||
|