Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(css): only use files the current bundle contains
If using multiple output formats like `es` and `cjs` and running vite in watch mode, then `generateBundle` will be called once per output format. The bundle on each call only contains the files for the current output format, but our `pureCSSChunks` contain all files (from all output formats). So we need to filter the chunk list to only contain valid files, as otherwise `basename` will fail with: > The "path" argument must be of type string. Received undefined Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
- Loading branch information