Skip to content

Commit

Permalink
try to restore pnp?
Browse files Browse the repository at this point in the history
  • Loading branch information
slorber committed Nov 4, 2024
1 parent 12e6285 commit ac4af80
Show file tree
Hide file tree
Showing 7 changed files with 279 additions and 20 deletions.
12 changes: 11 additions & 1 deletion .yarnrc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,20 @@ npmPublishAccess: public

yarnPath: .yarn/releases/yarn-4.0.1.cjs

nodeLinker: node-modules
# nodeLinker: node-modules

packageExtensions:
"@docusaurus/bundler@*":
dependencies:
"@docusaurus/faster": "*"
"@docusaurus/theme-common@*":
dependencies:
"@docusaurus/plugin-content-docs": "*"
"terser-webpack-plugin@*":
dependencies:
"@swc/core": "*"
"css-minimizer-webpack-plugin@*":
dependencies:
"lightningcss": "*"


3 changes: 0 additions & 3 deletions website-multi-docs/babel.config.js

This file was deleted.

11 changes: 11 additions & 0 deletions website-multi-docs/docusaurus.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,17 @@ const lightCodeTheme = themes.github;
const darkCodeTheme = themes.dracula;

const config = {
future: {
experimental_faster: {
swcJsLoader: true,
swcJsMinimizer: true,
swcHtmlMinimizer: true,
lightningCssMinimizer: true,
rspackBundler: false,
mdxCrossCompilerCache: true,
},
},

title: "My Site",
tagline: "Dinosaurs are cool",
url: "https://your-docusaurus-test-site.com",
Expand Down
13 changes: 7 additions & 6 deletions website-multi-docs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,12 @@
"write-heading-ids": "docusaurus write-heading-ids"
},
"dependencies": {
"@docusaurus/core": "^3.0.0",
"@docusaurus/plugin-content-docs": "^3.0.0",
"@docusaurus/preset-classic": "^3.0.0",
"@docusaurus/theme-classic": "^3.0.0",
"@docusaurus/theme-common": "^3.0.0",
"@docusaurus/core": "3.6.0",
"@docusaurus/faster": "3.6.0",
"@docusaurus/plugin-content-docs": "3.6.0",
"@docusaurus/preset-classic": "3.6.0",
"@docusaurus/theme-classic": "3.6.0",
"@docusaurus/theme-common": "3.6.0",
"@easyops-cn/docusaurus-search-local": "^workspace:*",
"@mdx-js/react": "^3.0.0",
"clsx": "^1.1.1",
Expand All @@ -27,7 +28,7 @@
"react-dom": "^18.2.0"
},
"devDependencies": {
"@docusaurus/module-type-aliases": "^3.0.0"
"@docusaurus/module-type-aliases": "3.6.0"
},
"browserslist": {
"production": [
Expand Down
3 changes: 0 additions & 3 deletions website/babel.config.js

This file was deleted.

9 changes: 8 additions & 1 deletion website/docusaurus.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,14 @@ const buildType = process.env.BUILD_TYPE;

module.exports = {
future: {
experimental_faster: true,
experimental_faster: {
swcJsLoader: true,
swcJsMinimizer: true,
swcHtmlMinimizer: true,
lightningCssMinimizer: true,
rspackBundler: false,
mdxCrossCompilerCache: true,
},
},

title: "Docusaurus Search",
Expand Down
Loading

0 comments on commit ac4af80

Please sign in to comment.