Skip to content

Commit

Permalink
Update resolve rule for @swc/helpers (#48980)
Browse files Browse the repository at this point in the history
### What?

Update resolve rule for `@swc/helpers` => `node_modules/@swc/helpers` to `@swc/helpers/_` => `node_modules/@swc/helpers/_` to select only `@swc/helpers@v0.5.0`.

### Why?

Previous rule make webpack merge `@swc/helpers@v0.4.x` and `@swc/helpers@v0.5.x`

### How?

Closes WEB-948
Fixes #48593
  • Loading branch information
kdy1 committed Apr 29, 2023
1 parent 514d57a commit 03189bb
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions packages/next/src/build/webpack-config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1071,8 +1071,9 @@ export default async function getBaseWebpackConfig(
}
: {}),

'@swc/helpers': path.dirname(
require.resolve('@swc/helpers/package.json')
'@swc/helpers/_': path.join(
path.dirname(require.resolve('@swc/helpers/package.json')),
'_'
),

setimmediate: 'next/dist/compiled/setimmediate',
Expand Down

0 comments on commit 03189bb

Please sign in to comment.