-
-
Notifications
You must be signed in to change notification settings - Fork 8.5k
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(core): reapply resolve.symlinks: false #6604
Conversation
✔️ [V2] 🔨 Explore the source changes: 9988fb4 🔍 Inspect the deploy log: https://app.netlify.com/sites/docusaurus-2/deploys/61fd039832d27700073cecf5 😎 Browse the preview: https://deploy-preview-6604--docusaurus-2.netlify.app |
⚡️ Lighthouse report for the changes in this PR:
Lighthouse ran on https://deploy-preview-6604--docusaurus-2.netlify.app/ |
@slorber This config doesn't work with PNPM. Should we just make it configurable instead? Or do you think using a plugin to configure webpack is sufficient? |
Size Change: +194 B (0%) Total Size: 772 kB
ℹ️ View Unchanged
|
😅 The webpack config is good enough but having this by default can be useful to avoid users form thinking about it. I think it's @felipecrs that mentioned this recently somewhere. I don't know what might be the problem with pnpm unfortunately |
PNPM uses hard links for all packages because they keep a global package storage. Webpack |
Also, the conversation you've been looking for is in that linked PR in the description. You seem to like injecting configuration with a plugin? Maybe we can promote this to a |
Does it mean Ping @zkochan, can you help us figure this out please?
If we add a shortcut, I'd rather add Not as convenient but generic and reusable in other cases. |
Docs on symlinked packages: https://webpack.js.org/configuration/resolve/#resolvesymlinks
This includes PNPM which symlinks all the time
Cool as well |
Going to close this. I think the plugin lifecycle is sufficient and with inline plugin modules, the bar to creating a plugin is extremely low: // docusaurus.config.js
module.exports = {
// ...
plugins: [
() => ({
configureWebpack() {
return { resolve: { symlinks: false } };
},
}),
],
}; |
Motivation
Fix #6257. Since the Webpack bug is fixed, we can now reapply this config.
Have you read the Contributing Guidelines on pull requests?
Yes
Test Plan
Removed the real path resolution in our dogfooding
Related PRs
#5126