Skip to content

Use .NET 9 JavaScript module importing #5903

Description

@stsrki

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions