📝 Docs: 移除侧栏遮罩及启用构建加速 (#3135)

This commit is contained in:
StarHeart 2024-11-22 14:16:22 +08:00 committed by GitHub
parent 4404a6c74e
commit e0d7e90f4a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
4 changed files with 1764 additions and 766 deletions

View File

@ -1,3 +0,0 @@
module.exports = {
presets: [require.resolve("@docusaurus/core/lib/babel/preset")],
};

View File

@ -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: [

View File

@ -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",
@ -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",

2499
yarn.lock

File diff suppressed because it is too large Load Diff