Skip to content

Commit

Permalink
Fix types for Webpack
Browse files Browse the repository at this point in the history
  • Loading branch information
wooorm committed Feb 8, 2023
1 parent 6a63bc1 commit 1142d8f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/loader/lib/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ export function loader(value, callback) {

process({value, path: this.resourcePath}).then(
(file) => {
callback(null, file.value, file.map)
callback(null, file.value, file.map || undefined)
},
(/** @type VFileMessage */ error) => {
const fpath = path.relative(this.context, this.resourcePath)
Expand Down

1 comment on commit 1142d8f

@vercel
Copy link

@vercel vercel bot commented on 1142d8f Feb 8, 2023

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:

mdx – ./

mdx-git-main-mdx.vercel.app
mdxjs.com
mdx-mdx.vercel.app
v2.mdxjs.com

Please sign in to comment.