chore: clean some code

This commit is contained in:
hardfist 2024-07-21 17:14:40 +08:00
parent 001664e3bc
commit 849568cc14
3 changed files with 3 additions and 3 deletions

View file

@ -2,7 +2,7 @@
"private": true,
"scripts": {
"dev": "RSPACK_CONFIG_VALIDATE=loose-silent next",
"build": "RSPACK_CONFIG_VALIDATE=loose-silent next build",
"build": "cross-env RSPACK_CONFIG_VALIDATE=loose-silent NEXT_TELEMETRY_DISABLED=1 node --trace-deprecation --enable-source-maps ../../packages/next/dist/bin/next build",
"start": "serve out"
},
"dependencies": {

View file

@ -924,7 +924,7 @@ export default async function getBaseWebpackConfig(
dependencyType,
contextInfo?.issuerLayer as WebpackLayerName,
(options) => {
return true
return true as any;
const resolveFunction = getResolve(options)
return (resolveContext: string, requestToResolve: string) =>
new Promise((resolve, reject) => {

View file

@ -791,7 +791,7 @@ export default class NextNodeServer extends BaseServer<
}
protected getFontManifest(): FontManifest {
return requireFontManifest(this.distDir)
return requireFontManifest(this.distDir) as any;
}
protected getNextFontManifest(): NextFontManifest | undefined {