0.0.8 • Published 3 years ago
@blocz/mdx-loader v0.0.8
Deprecated, use @mdx-js/loader + the plugin @blocz/mdx-plugin-detect-imports
const detectImportsPlugin = require("@blocz/mdx-plugin-detect-imports");
module.exports = {
// ...
module: {
rules: [
// ...
{
test: /.mdx?$/,
loader: "@mdx-js/loader",
options: {
remarkPlugins: [detectImportsPlugin],
// Or if you want to specify a custom name for the exported variable:
remarkPlugins: [
[detectImportsPlugin, { exportName: "otherName" }],
],
},
},
],
},
};