Skip to content

Commit

Permalink
Disable the functions manifest plugin (#35155)
Browse files Browse the repository at this point in the history
Disable the plugin introduced in #33770, will rewrite when manifest consuimg part becomes stable
  • Loading branch information
huozhi committed Mar 9, 2022
1 parent 21994ce commit 81276e2
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 12 deletions.
9 changes: 0 additions & 9 deletions packages/next/build/webpack-config.ts
Expand Up @@ -44,7 +44,6 @@ import { regexLikeCss } from './webpack/config/blocks/css'
import { CopyFilePlugin } from './webpack/plugins/copy-file-plugin'
import { FlightManifestPlugin } from './webpack/plugins/flight-manifest-plugin'
import { TelemetryPlugin } from './webpack/plugins/telemetry-plugin'
import FunctionsManifestPlugin from './webpack/plugins/functions-manifest-plugin'
import type { Span } from '../trace'
import { getRawPageExtensions } from './utils'
import browserslist from 'next/dist/compiled/browserslist'
Expand Down Expand Up @@ -1446,14 +1445,6 @@ export default async function getBaseWebpackConfig(
// replacement is done before its process.env.* handling
(!isServer || isEdgeRuntime) &&
new MiddlewarePlugin({ dev, isEdgeRuntime }),
process.env.ENABLE_FILE_SYSTEM_API === '1' &&
isEdgeRuntime &&
new FunctionsManifestPlugin({
dev,
pagesDir,
isEdgeRuntime,
pageExtensions: config.pageExtensions,
}),
!isServer &&
new BuildManifestPlugin({
buildId,
Expand Down
@@ -1,3 +1,5 @@
// TODO: rewrite against the stable edge functions standard

import { relative } from 'path'
import { sources, webpack5 } from 'next/dist/compiled/webpack/webpack'
import { normalizePagePath } from '../../../server/normalize-page-path'
Expand Down
Expand Up @@ -24,7 +24,6 @@ import css from './css'
import rsc from './rsc'
import streaming from './streaming'
import basic from './basic'
import functions from './functions'
import runtime from './runtime'

const documentWithGip = `
Expand Down Expand Up @@ -279,8 +278,6 @@ runSuite('CSS', 'prod', cssSuite)
runSuite('Custom Document', 'dev', documentSuite)
runSuite('Custom Document', 'prod', documentSuite)

runSuite('Functions manifest', 'build', { runTests: functions })

function runSuite(suiteName, env, options) {
const context = { appDir, distDir }
describe(`${suiteName} ${env}`, () => {
Expand Down

0 comments on commit 81276e2

Please sign in to comment.