Skip to content

Commit

Permalink
📝 Docs: 移除侧栏遮罩及启用构建加速 (#3135)
Browse files Browse the repository at this point in the history
  • Loading branch information
StarHeartHunt authored Nov 22, 2024
1 parent 4404a6c commit e0d7e90
Show file tree
Hide file tree
Showing 4 changed files with 1,801 additions and 803 deletions.
3 changes: 0 additions & 3 deletions website/babel.config.js

This file was deleted.

23 changes: 2 additions & 21 deletions website/docusaurus.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -305,27 +305,8 @@ export default async function createConfigAsync() {
],
],

webpack: {
jsLoader: (isServer) => ({
loader: require.resolve("swc-loader"),
options: {
jsc: {
parser: {
syntax: "typescript",
tsx: true,
},
transform: {
react: {
runtime: "automatic",
},
},
target: "es2017",
},
module: {
type: isServer ? "commonjs" : "es6",
},
},
}),
future: {
experimental_faster: true,
},

plugins: [
Expand Down
5 changes: 3 additions & 2 deletions website/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
"typecheck": "tsc"
},
"dependencies": {
"@docusaurus/core": "^3.5.2",
"@docusaurus/core": "^3.6.2",
"@mdx-js/react": "^3.0.0",
"@nullbot/docusaurus-plugin-changelog": "^3.0.0",
"@nullbot/docusaurus-preset-nonepress": "^3.0.0",
Expand All @@ -38,7 +38,8 @@
"swc-loader": "^0.2.6"
},
"devDependencies": {
"@docusaurus/module-type-aliases": "^3.5.2",
"@docusaurus/faster": "^3.6.2",
"@docusaurus/module-type-aliases": "^3.6.2",
"@nullbot/docusaurus-tsconfig": "^3.0.0",
"@types/react-color": "^3.0.10",
"asciinema-player": "^3.5.0",
Expand Down
Loading

0 comments on commit e0d7e90

Please sign in to comment.