Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(next-mdx): resolve webpack loader #17983

Merged
merged 11 commits into from
Jan 4, 2021
1 change: 1 addition & 0 deletions examples/with-mdx/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
},
"dependencies": {
"@mdx-js/loader": "^1.5.1",
"@mdx-js/react": "^1.6.18",
merceyz marked this conversation as resolved.
Show resolved Hide resolved
"@next/mdx": "^9.1.1",
"next": "latest",
"react": "^16.8.6",
Expand Down
2 changes: 1 addition & 1 deletion packages/next-mdx/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ module.exports = (pluginOptions = {}) => (nextConfig = {}) => {
use: [
options.defaultLoaders.babel,
{
loader: '@mdx-js/loader',
loader: require.resolve('@mdx-js/loader'),
options: pluginOptions.options,
},
],
Expand Down
3 changes: 2 additions & 1 deletion packages/next-mdx/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
"directory": "packages/next-mdx"
},
"peerDependencies": {
"@mdx-js/loader": ">=0.15.0"
"@mdx-js/loader": ">=0.15.0",
"@mdx-js/react": "*"
}
}
1 change: 1 addition & 0 deletions test-pnp.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
declare -a testCases=(
"with-typescript"
"with-next-sass"
"with-mdx"
)

set -e
Expand Down