Skip to content

Conversation

@cieplypolar
Copy link
Collaborator

Closes #1991.

@github-actions
Copy link

github-actions bot commented Dec 19, 2025

pkg.pr.new

packages
Ready to be installed by your favorite package manager ⬇️

https://pkg.pr.new/software-mansion/TypeGPU/typegpu@524fb4b8cd8f4af1071ef10d41f06527b71918bf
https://pkg.pr.new/software-mansion/TypeGPU/@typegpu/noise@524fb4b8cd8f4af1071ef10d41f06527b71918bf
https://pkg.pr.new/software-mansion/TypeGPU/unplugin-typegpu@524fb4b8cd8f4af1071ef10d41f06527b71918bf

benchmark
view benchmark

commit
view commit

Copy link
Collaborator

@iwoplaza iwoplaza left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good! 💜

@github-actions
Copy link

github-actions bot commented Jan 12, 2026

📊 Bundle Size Comparison

📈 Summary

  • 📈 Increased: 6 bundles

  • 📉 Decreased: 0 bundles

  • Unchanged: 18 bundles

  • Unknown: 0 bundles

📋 Bundle Size Comparison

Test tsdown webpack
dataImportEverything.ts 80.03 kB (➖) 85.34 kB (➖)
dataImportOneDirect.ts 40.28 kB (➖) 40.75 kB (➖)
dataImportOneStar.ts 40.28 kB (➖) 40.75 kB (➖)
functionWithUseGpu.ts 268 B (➖) 276 B (➖)
functionWithoutUseGpu.ts 24 B (➖) 59 B (➖)
importEntireLibrary.ts 257.16 kB ($${\color{red}+0.2\%}$$) 284.22 kB ($${\color{red}+0.2\%}$$)
importEntireLibraryUnused.ts 0 B (➖) 0 B (➖)
stdImportEverything.ts 113.10 kB (➖) 117.60 kB (➖)
stdImportOneDirect.ts 61.97 kB (➖) 62.92 kB (➖)
stdImportOneStar.ts 61.97 kB (➖) 62.92 kB (➖)
tgpuImportEverything.ts 238.16 kB ($${\color{red}+0.2\%}$$) 264.85 kB ($${\color{red}+0.2\%}$$)
tgpuImportOne.ts 238.17 kB ($${\color{red}+0.2\%}$$) 264.86 kB ($${\color{red}+0.2\%}$$)

@cieplypolar cieplypolar force-pushed the impr/unknown-type-suggestion branch from 8968724 to 524fb4b Compare January 13, 2026 14:25
@iwoplaza
Copy link
Collaborator

We could move the error up where we have more context, and append the suggestion to the error.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

impr: More descriptive errors when defining variable of unknown type

3 participants