Open slorber opened 2 weeks ago
This pull request includes updates to several configuration files in the project. The .gitignore
file now excludes the .idea
directory. The .yarnrc.yml
file has been modified to include a new property for package linking and an extension for specific Docusaurus packages. The package.json
files for both the main project and the website have updated Docusaurus package versions from 3.0.0
to 3.6.0
, with additional scripts and dependencies added in the website's configuration. New experimental features are introduced in the Docusaurus configuration for both the main project and the multi-docs setup.
File | Change Summary |
---|---|
.gitignore |
- Added entry for .idea to be ignored by Git. |
.yarnrc.yml |
- Added property nodeLinker: node-modules . - Introduced section packageExtensions for @docusaurus/bundler , @docusaurus/theme-common , terser-webpack-plugin , and css-minimizer-webpack-plugin with respective dependencies. |
package.json |
- Updated resolutions for several Docusaurus packages from 3.0.0 to 3.6.0 : @docusaurus/core , @docusaurus/module-type-aliases , @docusaurus/preset-classic , @docusaurus/theme-classic , @docusaurus/theme-common , @docusaurus/plugin-content-docs . |
website/docusaurus.config.js |
- Added configuration option: future: { experimental_faster: { swcJsLoader: true, swcJsMinimizer: true, swcHtmlMinimizer: true, lightningCssMinimizer: true, rspackBundler: false, mdxCrossCompilerCache: true } } . |
website/package.json |
- Added script "clear": "docusaurus clear" . - Updated dependency versions for @docusaurus/core , @docusaurus/preset-classic , @docusaurus/theme-classic , and @docusaurus/theme-common from ^3.0.0 to 3.6.0 . - Added new dependency @docusaurus/faster with version 3.6.0 . |
website-multi-docs/docusaurus.config.js |
- Added configuration section: future: { experimental_faster: { swcJsLoader: true, swcJsMinimizer: true, swcHtmlMinimizer: true, lightningCssMinimizer: true, rspackBundler: false, mdxCrossCompilerCache: true } } . |
website-multi-docs/package.json |
- Updated dependency versions for @docusaurus/core , @docusaurus/plugin-content-docs , @docusaurus/preset-classic , @docusaurus/theme-classic , @docusaurus/theme-common from ^3.0.0 to 3.6.0 . - Added new dependency @docusaurus/faster with version 3.6.0 . |
website/babel.config.js |
- Removed Babel configuration file. |
website-multi-docs/babel.config.js |
- Removed Babel configuration file. |
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?
Name | Link |
---|---|
Latest commit | ac4af80991f35a6d7d01a72f4beae3577d8ce4cf |
Latest deploy log | https://app.netlify.com/sites/easyops-cn-docusaurus-search-local/deploys/6728d06a98ae3b00084c4d09 |
👍 Great work!
I got no idea why it doesn't work with yarn PnP, either. Though using node modules linker works, right? Maybe related to dependencies with canary versions.
I'll try again once v3.6 is out and we'll see
For now it's already nice to have a POC proving that this plugin works with the new bundler :)
Docusaurus v3.6 is out: https://docusaurus.io/blog/releases/3.6
PR ready to review (but still fighting with PnP issues)
Unfortunately, the Yarn PnP error remains, and it only builds with node linker. Maybe @arcanis any idea what could cause this error?
[ERROR] Client bundle compiled with errors therefore further build is impossible.
× Module not found: Can't resolve '/Users/sebastienlorber/Desktop/projects/docusaurus-search-local-easyops-cn/.yarn/__virtual__/@docusaurus-core-virtual-22c3351990/0/cache/@docusaurus-core-npm-3.6.0-794aa300d6-d024957005.zip/node_modules/@docusaurus/core/lib/client/clientEntry.js' in '/Users/sebastienlorber/Desktop/projects/docusaurus-search-local-easyops-cn/website'
Edit, it seems using rspackBundler: false
fix that error, and there's a related Rspack issue: https://github.com/web-infra-dev/rspack/issues/2236
Docusaurus maintainer here 👋
This is a POC to ensure this plugin is compatible with Docusaurus Faster
I'm not sure how your setup works exactly, not super familiar with Yarn PnP but got some annoying errors due to it 😅
I'm able to build with Webpack, but Rspack fails with this error I can't solve when PnP is enabled:
And idea?
Benchmark
Using node modules linker
Cold builds - much faster
Warm builds - same:
Summary by CodeRabbit
New Features
Updates
@docusaurus/faster
.Configuration Changes
.gitignore
to exclude.idea
directory.