From f1ca90fad556ae81c8d113758be76407099652eb Mon Sep 17 00:00:00 2001 From: Sebastian Silbermann Date: Thu, 15 Aug 2024 09:50:36 +0200 Subject: [PATCH] Normalize vendored entrypoints (#68502) --- packages/next/src/build/webpack-config.ts | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/packages/next/src/build/webpack-config.ts b/packages/next/src/build/webpack-config.ts index 3469547f86560..151d3c736a85a 100644 --- a/packages/next/src/build/webpack-config.ts +++ b/packages/next/src/build/webpack-config.ts @@ -1604,7 +1604,7 @@ export default async function getBaseWebpackConfig( 'next/dist/compiled/assert' ), buffer: require.resolve( - 'next/dist/compiled/buffer/' + 'next/dist/compiled/buffer' ), constants: require.resolve( 'next/dist/compiled/constants-browserify' @@ -1641,7 +1641,7 @@ export default async function getBaseWebpackConfig( string_decoder: require.resolve( 'next/dist/compiled/string_decoder' ), - sys: require.resolve('next/dist/compiled/util/'), + sys: require.resolve('next/dist/compiled/util'), timers: require.resolve( 'next/dist/compiled/timers-browserify' ), @@ -1649,8 +1649,8 @@ export default async function getBaseWebpackConfig( 'next/dist/compiled/tty-browserify' ), // Handled in separate alias - // url: require.resolve('url/'), - util: require.resolve('next/dist/compiled/util/'), + // url: require.resolve('url'), + util: require.resolve('next/dist/compiled/util'), vm: require.resolve( 'next/dist/compiled/vm-browserify' ), @@ -1658,7 +1658,7 @@ export default async function getBaseWebpackConfig( 'next/dist/compiled/browserify-zlib' ), events: require.resolve( - 'next/dist/compiled/events/' + 'next/dist/compiled/events' ), setImmediate: require.resolve( 'next/dist/compiled/setimmediate'