Skip to content

Commit

Permalink
Bump @vercel/nft 0.20.0 (#37602)
Browse files Browse the repository at this point in the history
* Bump @vercel/nft 0.20.0

* Filter out wasm files

* Revert filter that is no longer needed

Co-authored-by: JJ Kasper <jj@jjsweb.site>
  • Loading branch information
styfle and ijjk authored Jun 10, 2022
1 parent 607ff2b commit 2addf46
Show file tree
Hide file tree
Showing 4 changed files with 34 additions and 30 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,7 @@ export class TraceEntryPointsPlugin implements webpack5.WebpackPluginInstance {
await span.traceChild('create-trace-assets').traceAsyncFn(async () => {
const entryFilesMap = new Map<any, Set<string>>()
const chunksToTrace = new Set<string>()
const isTraceable = (file: string) => !file.endsWith('.wasm')

for (const entrypoint of compilation.entrypoints.values()) {
const entryFiles = new Set<string>()
Expand All @@ -134,14 +135,18 @@ export class TraceEntryPointsPlugin implements webpack5.WebpackPluginInstance {
.getEntrypointChunk()
.getAllReferencedChunks()) {
for (const file of chunk.files) {
const filePath = nodePath.join(outputPath, file)
chunksToTrace.add(filePath)
entryFiles.add(filePath)
if (isTraceable(file)) {
const filePath = nodePath.join(outputPath, file)
chunksToTrace.add(filePath)
entryFiles.add(filePath)
}
}
for (const file of chunk.auxiliaryFiles) {
const filePath = nodePath.join(outputPath, file)
chunksToTrace.add(filePath)
entryFiles.add(filePath)
if (isTraceable(file)) {
const filePath = nodePath.join(outputPath, file)
chunksToTrace.add(filePath)
entryFiles.add(filePath)
}
}
}
entryFilesMap.set(entrypoint, entryFiles)
Expand Down
4 changes: 2 additions & 2 deletions packages/next/compiled/@vercel/nft/index.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion packages/next/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@
"@types/webpack-sources1": "npm:@types/webpack-sources@0.1.5",
"@types/ws": "8.2.0",
"@vercel/ncc": "0.33.4",
"@vercel/nft": "0.19.1",
"@vercel/nft": "0.20.0",
"acorn": "8.5.0",
"amphtml-validator": "1.0.35",
"arg": "4.1.0",
Expand Down
41 changes: 20 additions & 21 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 2addf46

Please sign in to comment.