mirror of
https://github.com/nonebot/nonebot2.git
synced 2024-11-24 00:55:07 +08:00
📝 Docs: 移除侧栏遮罩及启用构建加速 (#3135)
This commit is contained in:
parent
4404a6c74e
commit
e0d7e90f4a
@ -1,3 +0,0 @@
|
|||||||
module.exports = {
|
|
||||||
presets: [require.resolve("@docusaurus/core/lib/babel/preset")],
|
|
||||||
};
|
|
@ -305,27 +305,8 @@ export default async function createConfigAsync() {
|
|||||||
],
|
],
|
||||||
],
|
],
|
||||||
|
|
||||||
webpack: {
|
future: {
|
||||||
jsLoader: (isServer) => ({
|
experimental_faster: true,
|
||||||
loader: require.resolve("swc-loader"),
|
|
||||||
options: {
|
|
||||||
jsc: {
|
|
||||||
parser: {
|
|
||||||
syntax: "typescript",
|
|
||||||
tsx: true,
|
|
||||||
},
|
|
||||||
transform: {
|
|
||||||
react: {
|
|
||||||
runtime: "automatic",
|
|
||||||
},
|
|
||||||
},
|
|
||||||
target: "es2017",
|
|
||||||
},
|
|
||||||
module: {
|
|
||||||
type: isServer ? "commonjs" : "es6",
|
|
||||||
},
|
|
||||||
},
|
|
||||||
}),
|
|
||||||
},
|
},
|
||||||
|
|
||||||
plugins: [
|
plugins: [
|
||||||
|
@ -22,7 +22,7 @@
|
|||||||
"typecheck": "tsc"
|
"typecheck": "tsc"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@docusaurus/core": "^3.5.2",
|
"@docusaurus/core": "^3.6.2",
|
||||||
"@mdx-js/react": "^3.0.0",
|
"@mdx-js/react": "^3.0.0",
|
||||||
"@nullbot/docusaurus-plugin-changelog": "^3.0.0",
|
"@nullbot/docusaurus-plugin-changelog": "^3.0.0",
|
||||||
"@nullbot/docusaurus-preset-nonepress": "^3.0.0",
|
"@nullbot/docusaurus-preset-nonepress": "^3.0.0",
|
||||||
@ -38,7 +38,8 @@
|
|||||||
"swc-loader": "^0.2.6"
|
"swc-loader": "^0.2.6"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"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",
|
"@nullbot/docusaurus-tsconfig": "^3.0.0",
|
||||||
"@types/react-color": "^3.0.10",
|
"@types/react-color": "^3.0.10",
|
||||||
"asciinema-player": "^3.5.0",
|
"asciinema-player": "^3.5.0",
|
||||||
|
Loading…
Reference in New Issue
Block a user