Unverified Commit ff399348 authored by Tim Neutkens's avatar Tim Neutkens Committed by GitHub

Remove unused code (#82774)

parent 876f280c
...@@ -2128,7 +2128,7 @@ export default async function getBaseWebpackConfig( ...@@ -2128,7 +2128,7 @@ export default async function getBaseWebpackConfig(
minimized: true, minimized: true,
}, },
}), }),
hasAppDir && isClient && new AppBuildManifestPlugin({ dev }), hasAppDir && isClient && new AppBuildManifestPlugin(),
hasAppDir && hasAppDir &&
(isClient (isClient
? new ClientReferenceManifestPlugin({ ? new ClientReferenceManifestPlugin({
......
...@@ -7,10 +7,6 @@ import { ...@@ -7,10 +7,6 @@ import {
import { getEntrypointFiles } from './build-manifest-plugin' import { getEntrypointFiles } from './build-manifest-plugin'
import getAppRouteFromEntrypoint from '../../../server/get-app-route-from-entrypoint' import getAppRouteFromEntrypoint from '../../../server/get-app-route-from-entrypoint'
type Options = {
dev: boolean
}
export type AppBuildManifest = { export type AppBuildManifest = {
pages: Record<string, string[]> pages: Record<string, string[]>
} }
...@@ -18,12 +14,6 @@ export type AppBuildManifest = { ...@@ -18,12 +14,6 @@ export type AppBuildManifest = {
const PLUGIN_NAME = 'AppBuildManifestPlugin' const PLUGIN_NAME = 'AppBuildManifestPlugin'
export class AppBuildManifestPlugin { export class AppBuildManifestPlugin {
private readonly dev: boolean
constructor(options: Options) {
this.dev = options.dev
}
public apply(compiler: any) { public apply(compiler: any) {
compiler.hooks.make.tap(PLUGIN_NAME, (compilation: any) => { compiler.hooks.make.tap(PLUGIN_NAME, (compilation: any) => {
compilation.hooks.processAssets.tap( compilation.hooks.processAssets.tap(
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment