feat: fix use raw-loader instead of mdx-js/loader (#3640)

This commit is contained in:
Yunus M 2023-09-27 19:56:51 +05:30 committed by GitHub
parent bccefc6a10
commit e3f4fc2967
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -91,18 +91,8 @@ const config = {
exclude: /node_modules/,
},
{
test: /\.mdx?$/,
use: [
// `babel-loader` is optional:
{ loader: 'babel-loader', options: {} },
{
loader: '@mdx-js/loader',
/** @type {import('@mdx-js/loader').Options} */
options: {
/* jsxImportSource: …, otherOptions… */
},
},
],
test: /\.md$/,
use: 'raw-loader',
},
{
test: /\.css$/,