Skip to content
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

fix: legacy no resolve asset urls #9507

Merged
merged 42 commits into from
Aug 19, 2022
Merged
Changes from 1 commit
Commits
Show all changes
42 commits
Select commit Hold shift + click to select a range
8900c1c
test: vue legacy
poyoho Aug 3, 2022
b9130cc
feat: resolveAssetUrlsInCss in legacy mode
poyoho Aug 3, 2022
536cd5e
feat: test hook for legacy
poyoho Aug 4, 2022
72d8aef
fix: relative path for legacy mode
poyoho Aug 5, 2022
d909dee
fix: test
poyoho Aug 5, 2022
6e08b1d
feat: ignore entry chunk insert css
poyoho Aug 6, 2022
c1eb9b0
fix: error
poyoho Aug 6, 2022
a0caa7c
chore: update comment
poyoho Aug 6, 2022
18bec1b
chore: update
poyoho Aug 10, 2022
0b4c3cc
chore: update
poyoho Aug 10, 2022
fb734fa
chore: update
poyoho Aug 10, 2022
53bfcf6
chore: revert avoid generate the css insert script
poyoho Aug 10, 2022
43c64ae
chore: update
poyoho Aug 10, 2022
2d7812a
chore: update
poyoho Aug 10, 2022
f684b78
chore: renderAssetUrl helper
poyoho Aug 16, 2022
b6083fb
chore: update
poyoho Aug 16, 2022
2fd5069
fix: cssAssetDirname
poyoho Aug 16, 2022
2ae6788
chore: rebase
poyoho Aug 16, 2022
46d57b0
feat: opts
poyoho Aug 16, 2022
1a50884
fix: types
poyoho Aug 16, 2022
ecd950b
chore: don't modify resolveAssetUrlsInCss
poyoho Aug 17, 2022
57b3595
chore: revert resolveAssetUrlsInCss
poyoho Aug 17, 2022
e91fe24
chore: update
poyoho Aug 17, 2022
86af81d
chore: update
poyoho Aug 17, 2022
45dfb22
feat: no wrap
poyoho Aug 17, 2022
32fbeb3
chore: update
poyoho Aug 17, 2022
b682325
chore: update
poyoho Aug 17, 2022
297b765
chore: update
poyoho Aug 17, 2022
9e179df
fix: test
poyoho Aug 17, 2022
59f6a26
chore: update
poyoho Aug 17, 2022
b30a5c9
feat: vitest __test__ hooks
poyoho Aug 17, 2022
7f49b78
fix: systemjs wrapper
poyoho Aug 17, 2022
8422fbc
feat: one more judge
poyoho Aug 17, 2022
58eeb69
chore: update
poyoho Aug 18, 2022
7e97059
chore: update
poyoho Aug 18, 2022
e3c098e
test: for async legacy chunk
poyoho Aug 18, 2022
8e95e3f
feat: systemjsWrapCompletePlugin
poyoho Aug 18, 2022
4b0b731
chore: update
poyoho Aug 18, 2022
0307aeb
chore: update
poyoho Aug 18, 2022
9c1a625
chore: update
poyoho Aug 18, 2022
3b72036
chore: update
poyoho Aug 19, 2022
8df22e9
chore: update
poyoho Aug 19, 2022
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
chore: update
Co-authored-by: 翠 / green <[email protected]>
poyoho and sapphi-red authored Aug 17, 2022
commit b682325c701caf274224e5b595081ca14c895d23
2 changes: 1 addition & 1 deletion packages/vite/src/node/plugins/asset.ts
Original file line number Diff line number Diff line change
@@ -89,7 +89,7 @@ export function renderAssetUrlInJS(

const publicAssetUrlMap = publicAssetUrlCache.get(config)!
while ((match = publicAssetUrlRE.exec(code))) {
s = s || (s = new MagicString(code))
s ||= new MagicString(code)
const [full, hash] = match
const publicUrl = publicAssetUrlMap.get(hash)!.slice(1)
const replacement = toOutputFilePathInString(