-
-
Notifications
You must be signed in to change notification settings - Fork 6.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: use rollup hashing when emitting assets (#10878)
- Loading branch information
Showing
7 changed files
with
52 additions
and
81 deletions.
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
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
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
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
Hi @patak-dev and thank you for your involvement in the vite projet.
I developed a plugin to allow communication between vite and the symfony framework, and I'm having trouble updating vite v4.
the symfony plugin https://github.com/lhapaipai/vite-plugin-symfony allows you to generate an entrypoints.json file similar to manifest.json but also containing a mapping for the assets: url relative to config.root -> generated url. I could do it easily with vite 3 with a hook on generateBundle because the name of the assets is relative to
config.root
. the generated entrypoints.json is similar to:but I have difficulties with this same hook under vite 4 because the name is only the basename. the same
entrypoints.json
generated with vite 4 isnot to mention the conflict between 2 assets of the same name, could you explain to me why you are using the basename and do you have another method to successfully perform this mapping ?
thank you very much for the time you could take to answer my message and have a nice day !