Skip to content

Commit

Permalink
Update @mdx-js/loader (#1657)
Browse files Browse the repository at this point in the history
* Use ESM (with CJS wrapper, which is a requirement for webpack currently)
* Add JSDoc based types
* Use webpack 5
* Add preact, vue tests, which it now supports
* Switch to xdm for second — will switch back to `@mdx-js/mdx` when that’s migrated
  • Loading branch information
wooorm authored Sep 15, 2021
1 parent 36cb41b commit a9ee3f2
Show file tree
Hide file tree
Showing 37 changed files with 35,359 additions and 36,652 deletions.
4 changes: 4 additions & 0 deletions .eslintrc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,10 @@ settings:
version: detect

overrides:
- files:
- '**/test/**/*.js'
rules:
import/no-unresolved: off
- files:
- '*.d.ts'
- '**/types/*.ts'
Expand Down
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -13,3 +13,5 @@ artifacts
.nyc_output/
coverage/
/public
/packages/loader/lib/**/*.d.ts
/packages/loader/test/**/*.d.ts
3 changes: 0 additions & 3 deletions examples/vue/.babelrc

This file was deleted.

20 changes: 0 additions & 20 deletions examples/vue/package.json

This file was deleted.

Binary file removed examples/vue/public/favicon.ico
Binary file not shown.
20 changes: 0 additions & 20 deletions examples/vue/public/index.html

This file was deleted.

21 changes: 1 addition & 20 deletions examples/vue/readme.md
Original file line number Diff line number Diff line change
@@ -1,22 +1,3 @@
# Vue + MDX

> [Try it on CodeSandbox](https://codesandbox.io/s/github/mdx-js/mdx/tree/main/examples/vue)
Install:

```sh
npm install
```

Then, to start a development server:

```sh
npm start
```

Alternatively, to build for production and serve the resulting `dist/`:

```sh
npm run build
npx serve dist/
```
[This example is now a guide on our website](https://mdxjs.com/guides/vue/)
21 changes: 0 additions & 21 deletions examples/vue/src/App.vue

This file was deleted.

11 changes: 0 additions & 11 deletions examples/vue/src/Box.vue

This file was deleted.

3 changes: 0 additions & 3 deletions examples/vue/src/content.mdx

This file was deleted.

8 changes: 0 additions & 8 deletions examples/vue/src/main.js

This file was deleted.

12 changes: 0 additions & 12 deletions examples/vue/vue.config.js

This file was deleted.

Loading

1 comment on commit a9ee3f2

@vercel
Copy link

@vercel vercel bot commented on a9ee3f2 Sep 15, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

Please sign in to comment.