Skip to content

Commit

Permalink
Remove global next Webpack alias
Browse files Browse the repository at this point in the history
It would take precedence over any potential subsequent alias of `next/*` e.g. aliasing `next/dist/compiled/react` to react.react-server
  • Loading branch information
eps1lon committed Apr 27, 2024
1 parent 3050f45 commit aec20da
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions packages/next/src/build/create-compiler-aliases.ts
Expand Up @@ -118,8 +118,6 @@ export function createWebpackAliases({
}
: undefined),

next: NEXT_PROJECT_ROOT,

'styled-jsx/style$': defaultOverrides['styled-jsx/style'],
'styled-jsx$': defaultOverrides['styled-jsx'],

Expand Down

0 comments on commit aec20da

Please sign in to comment.