chore: clean some code
This commit is contained in:
parent
001664e3bc
commit
849568cc14
3 changed files with 3 additions and 3 deletions
|
@ -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": {
|
||||
|
|
|
@ -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) => {
|
||||
|
|
|
@ -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 {
|
||||
|
|
Loading…
Reference in a new issue