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

This commit is contained in:
StarHeart
2024-11-22 14:16:22 +08:00
committed by GitHub
parent 4404a6c74e
commit e0d7e90f4a
4 changed files with 1764 additions and 766 deletions

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