Skip to content

Commit

Permalink
dev only to no leak machine information
Browse files Browse the repository at this point in the history
  • Loading branch information
eps1lon committed Oct 27, 2024
1 parent 6602ec4 commit 4a62733
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/next/src/build/webpack-config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1144,7 +1144,9 @@ export default async function getBaseWebpackConfig(
// However, Webpack's `resource-path` is relative to the app dir.
// TODO: Either `sourceRoot` should be populated with the root and then we can use `[resource-path]`
// or we need a way to resolve return `path.relative(sourceMapLocation, info.resourcePath)`
devtoolModuleFilenameTemplate: '[absolute-resource-path]',
devtoolModuleFilenameTemplate: dev
? '[absolute-resource-path]'
: undefined,
webassemblyModuleFilename: 'static/wasm/[modulehash].wasm',
hashFunction: 'xxhash64',
hashDigestLength: 16,
Expand Down

0 comments on commit 4a62733

Please sign in to comment.