-
-
Notifications
You must be signed in to change notification settings - Fork 7.2k
Closed
rollup/rollup
#4867Labels
bug: upstreamBug in a dependency of ViteBug in a dependency of ViteinconsistencyInconsistency between dev & buildInconsistency between dev & buildp3-minor-bugAn edge case that only affects very specific usage (priority)An edge case that only affects very specific usage (priority)
Description
Describe the bug
When importing the package lowlight
, some parts of the code in files listed at sideEffects
are removed incorrectly:
Reproduce steps
- Open the reproduction link below
- run
npm run build
- Check if the JS output has these
highlight.js
languages code bundled in
Reproduction
https://stackblitz.com/edit/vitejs-vite-zyomf8?file=main.js
System Info
It has been reproduced at Stackblitz. So ignore this part.
Used Package Manager
npm
Logs
No response
Validations
- Follow our Code of Conduct
- Read the Contributing Guidelines.
- Read the docs.
- Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
- Make sure this is a Vite issue and not a framework-specific issue. For example, if it's a Vue SFC related bug, it should likely be reported to https://github.com/vuejs/core instead.
- Check that this is a concrete bug. For Q&A open a GitHub Discussion or join our Discord Chat Server.
- The provided reproduction is a minimal reproducible example of the bug.
renataogarcia, EntityB and paveljanda
Metadata
Metadata
Assignees
Labels
bug: upstreamBug in a dependency of ViteBug in a dependency of ViteinconsistencyInconsistency between dev & buildInconsistency between dev & buildp3-minor-bugAn edge case that only affects very specific usage (priority)An edge case that only affects very specific usage (priority)