ai / size-limit

Calculate the real cost to run your JS app or lib to keep good performance. Show error in pull request if the cost exceeds the limit.
MIT License
6.48k stars 1.82k forks source link

Support css content in esbuild plugin #361

Closed just-boris closed 4 months ago

just-boris commented 4 months ago

parse('index.css').name and parse('index.js').name prodiuces the same index key, which overwrites one of the entries.

Use base to prevent conflicts and use index.js/index.css as the keys.

Fixes #360

ai commented 4 months ago

Lgtm. Do you want to add anything (PR is marked as draft) or we ready for merge?