Skip to content

Commit

Permalink
Update dev-dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
wooorm committed Nov 9, 2021
1 parent fad6219 commit e60c1ca
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 11 deletions.
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -73,8 +73,8 @@
"@babel/core": "^7.0.0",
"@babel/plugin-transform-react-jsx": "^7.0.0",
"@emotion/react": "^11.0.0",
"@mdx-js/react": "2.0.0-next.8",
"@theme-ui/preset-base": "^0.11.0",
"@mdx-js/react": "2.0.0-rc.1",
"@theme-ui/preset-base": "^0.12.0",
"@types/babel__core": "^7.0.0",
"@types/node": "^16.0.0",
"@types/react": "^17.0.0",
Expand Down Expand Up @@ -109,7 +109,7 @@
"typescript": "^4.0.0",
"vue": "^3.0.0",
"webpack": "^5.0.0",
"xo": "^0.45.0"
"xo": "^0.46.0"
},
"scripts": {
"prepack": "npm run build && npm run format",
Expand Down
4 changes: 2 additions & 2 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -938,7 +938,7 @@ These do not adhere to semver and could break at any time!

### Importing `.mdx` files directly

[ESM loaders](https://nodejs.org/api/esm.html#esm\_loaders) are an experimental
[ESM loaders](https://nodejs.org/api/esm.html#esm_loaders) are an experimental
feature in Node, slated to change.
Still, they let projects “hijack” imports, to do all sorts of fancy things!
**xdm** comes with experimental support for importing `.mdx` files with
Expand Down Expand Up @@ -986,7 +986,7 @@ multiple loaders with

### Requiring `.mdx` files directly

[`require.extensions`](https://nodejs.org/api/modules.html#modules\_require\_extensions)
[`require.extensions`](https://nodejs.org/api/modules.html#modules_require_extensions)
is a deprecated feature in Node.
Still, it lets projects “hijack” `require` calls to do fancy things.
**xdm** comes with support for requiring `.mdx` files with on-the-fly
Expand Down
10 changes: 4 additions & 6 deletions test/core.js
Original file line number Diff line number Diff line change
Expand Up @@ -117,9 +117,7 @@ test('xdm', async (t) => {
render(
h(
// @ts-expect-error: React and Preact interferring.
await run(compileSync('?', {jsxImportSource: 'preact'}), {
keepImport: true
}),
await run(compileSync('?', {jsxImportSource: 'preact'})),
{},
[]
)
Expand Down Expand Up @@ -151,9 +149,7 @@ test('xdm', async (t) => {
render(
h(
// @ts-expect-error: Preact types do not accept `JSX.Element`.
await run(compileSync('<>1</>', {jsxImportSource: 'preact'}), {
keepImport: true
}),
await run(compileSync('<>1</>', {jsxImportSource: 'preact'})),
{}
)
),
Expand Down Expand Up @@ -303,6 +299,7 @@ test('xdm', async (t) => {
MDXProvider,
{
components: {
// @ts-expect-error: React and Preact interferring.
Y() {
return React.createElement('span', {}, '!')
}
Expand Down Expand Up @@ -545,6 +542,7 @@ export default function Layout({children}) {
/**
* @param {Object.<string, unknown>} props
*/
// @ts-expect-error: React and Preact interferring.
em(props) {
return React.createElement('i', props)
}
Expand Down
1 change: 1 addition & 0 deletions test/evaluate.js
Original file line number Diff line number Diff line change
Expand Up @@ -357,6 +357,7 @@ test('xdm (evaluate)', async (t) => {
provider.MDXProvider,
{
components: {
// @ts-expect-error: React and Preact interferring.
X() {
return React.createElement('span', {}, '!')
}
Expand Down

0 comments on commit e60c1ca

Please sign in to comment.