-
Notifications
You must be signed in to change notification settings - Fork 36
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
Strip query and hash by sanitizeURIComponent
#138
Comments
@antfu Shall we close this? |
No, it's not #137. Rather I am asking if you think it's a good idea to strip So
instead of the current
|
Hashing payload (query, hash) seems a really nice idea indeed. Feel free to open PR i can wait for next release. |
I am more referring to https://github.com/nuxt/framework/blob/c67dbed40755b03cc98497141089a8b54adf06b4/packages/vite/src/vite.ts#L63-L67 Where we use |
I think removing it here makes sense as well even with a simple hashing or simply removing anything after Here we can either strip or use simple hash (like length) |
Describe the feature
Related to #137 - Even that PR fixes the bug, it still makes the file name necessarily long. And in practice, if you check the dist of a Nuxt app, you will find there are a lot of files ending with
.vue_vue_type_script_setup_true_lang
:Since the bundle already has a hash in the end, the uniqueness shouldn't be a problem.
I would propose to make
sanitizeURIComponent
striping the query and hash directlyAdditional information
The text was updated successfully, but these errors were encountered: