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

Use .NET 9 JavaScript module importing #5903

Open
stsrki opened this issue Dec 17, 2024 · 0 comments
Open

Use .NET 9 JavaScript module importing #5903

stsrki opened this issue Dec 17, 2024 · 0 comments

Comments

@stsrki
Copy link
Collaborator

stsrki commented Dec 17, 2024

This will not be an easy upgrade since it is only available from .NET 9. But I'm writing it so we don't forget.

The new .MapStaticAssets handles the caching for us, so once we upgrade our JS importing, we will not need to have query versioning for JS files, eg, "./utilities.js?v=1.7.1.0";.

References


I have tested it on a small project, and the new import mechanism also works for import done by the JS side.

Image

Image


Having a query version doesn't play well with the new .MapStaticAssets:

Image

Meaning at some point we will have to remove all traces of query versions.


This will probably have to be done in the distant future after we remove the .NET 8 LTS version. And not before .NET 9 LTS comes out. So, for now, it is just a nice feature to have.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant