This is a minor bug fix for something that was reported to me by a mdx-bundler user.
Passing an empty string through the pluginData.contents system is falsey which causes the plugin to fallback on reading the file directly. This of course throws an error for us as the file path doesn't exist.
This solution checks if its not undefined instead of it being truthy.
This is a minor bug fix for something that was reported to me by a mdx-bundler user.
Passing an empty string through the
pluginData.contents
system is falsey which causes the plugin to fallback on reading the file directly. This of course throws an error for us as the file path doesn't exist.This solution checks if its not undefined instead of it being truthy.