-
-
Notifications
You must be signed in to change notification settings - Fork 6.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(css): provide filename for css-minify error #16006
Open
chaejunlee
wants to merge
33
commits into
vitejs:main
Choose a base branch
from
chaejunlee:fix/css-error-message
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+161
−35
Open
Changes from 8 commits
Commits
Show all changes
33 commits
Select commit
Hold shift + click to select a range
cd7610a
feat: provide filename for css-minify error
chaejunlee ccd4cbd
feat: also handle `generateBundle()`
chaejunlee de30d83
fix(css): track error by fileMap
chaejunlee ccb18ae
refactor(css): rename variables
chaejunlee 626bde6
fix(css): make the numbers more precise
chaejunlee 589b3e2
fefactor(css): reduce redundant if check
chaejunlee a0cc001
chore(css): add comment for better explanation)
chaejunlee 2cf9ea8
fix(css) apply review
chaejunlee bc90159
refactor: reduce unnecessary changes
chaejunlee 7196772
Merge branch 'main' of https://github.com/vitejs/vite into fix/css-er…
chaejunlee 39330c7
fix: set the fallback to the original default
chaejunlee 86ec814
fix: apply review
chaejunlee 7435ee4
refactor: clean up
chaejunlee 2fb1493
refactor
chaejunlee 6a59086
fix: correctly handle import line parsing
chaejunlee b0cf404
fix: narrow down the type of `collected`
chaejunlee 3519c6a
Update packages/vite/src/node/plugins/css.ts
chaejunlee 91e399c
Update packages/vite/src/node/plugins/css.ts
chaejunlee d9b237b
Update packages/vite/src/node/plugins/css.ts
chaejunlee e886065
Update packages/vite/src/node/plugins/css.ts
chaejunlee d42c20c
fix: calculating imported end lines when multiple imports
chaejunlee 22c12a2
refactore: simplify logic
chaejunlee 5113ff4
refactor: remove unused function
chaejunlee 07cc0cd
fix: early return when content is null
chaejunlee 39838f2
fix: 1-based line + concat css w/o `\n`
chaejunlee 01aa47f
fix: refactor + line count
chaejunlee a3295ff
fix: new `start` should be before prev `end` (not concating with `\n`)
chaejunlee c1d624d
fix: concat with `\n`
chaejunlee 58fcc12
chore: simplify
sapphi-red 7c9d3e0
fix: line count of empty css is now 1
chaejunlee 00e1b76
fix: don't push `content` if it is `null` or `''`
chaejunlee 3f141d2
chore: reduce diff
sapphi-red f519538
chore: reduce diff
sapphi-red File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I changed this line to resolve the merge conflict. Before merging, this needs to be double checked!