Skip to content

Commit

Permalink
chore: cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
feedthejim committed Sep 6, 2022
1 parent 683a6c2 commit 97f009f
Showing 1 changed file with 0 additions and 23 deletions.
23 changes: 0 additions & 23 deletions packages/next/build/webpack-config.ts
Expand Up @@ -1824,29 +1824,6 @@ export default async function getBaseWebpackConfig(
].filter<[Feature, boolean]>(Boolean as any)
)
),
// isEdgeServer &&
// new webpack.NormalModuleReplacementPlugin(
// /\..*\/(server|build|shared|lib)\/.*/,
// (resource: any) => {
// const folder = /.*\/(server|build|shared)\/.*/.exec(
// resource.request
// )![1]

// resource.request = resource.request.replace(folder, `${folder}-esm`)
// // resource.request = (resource.request as string).replace(
// // /.*\/(server|build|shared|lib)\/.*/,
// // (match: string) => {
// // console.log(match, resource.request)
// // return match
// // }
// // )
// // return resource
// }
// ),
// isEdgeServer && (...[new webpack.NormalModuleReplacementPlugin(
// /next[\\/]dist[\\/]shared[\\/]lib[\\/]router[\\/]router/,
// () => {}
// )
].filter(Boolean as any as ExcludesFalse),
}

Expand Down

0 comments on commit 97f009f

Please sign in to comment.