Skip to content

Commit

Permalink
Merge pull request #4 from storybookjs/update-readme
Browse files Browse the repository at this point in the history
Add loader to README.md
  • Loading branch information
shilman authored May 23, 2022
2 parents 44bfb39 + 0c75f72 commit 789f9ae
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,28 @@ const code = '# hello\n\nworld';
mdx.sync(code, { compilers: [createCompiler()] });
```

## Loader

In addition, this library supports a simple Webpack loader that mirrors MDXv1's loader, but adds Webpack5 support.

```js
module.exports = {
module: {
rules: [
{
test: /\.(stories|story)\.mdx$/,
use: [
{
loader: require.resolve('@storybook/mdx1-csf/loader'),
options: {},
},
],
},
],
},
};
```

## Contributing

We welcome contributions to Storybook!
Expand Down

0 comments on commit 789f9ae

Please sign in to comment.