Modify the name of the virtual module to conform to the specification of vite and rollup so that it can be easily used in other frameworks.
Additional context
If the name is not standardized, some frameworks will resolve it as an absolute path because the name does not have the virtual: identifier and starts with /.
What is the purpose of this pull request?
[ ] Bug fix
[ ] New Feature
[ ] Documentation update
[x] Other
Before submitting the PR, please make sure you do the following
[x] Check that there isn't already a PR that solves the problem the same way to avoid creating a duplicate.
[x] Provide a description in this PR that addresses what the PR is solving, or reference the issue that it solves (e.g. fixes #123).
[x] Ideally, include relevant tests that fail without this PR but pass with it.
Description
Modify the name of the virtual module to conform to the specification of vite and rollup so that it can be easily used in other frameworks.
Additional context
If the name is not standardized, some frameworks will resolve it as an absolute path because the name does not have the
virtual:
identifier and starts with/
.What is the purpose of this pull request?
Before submitting the PR, please make sure you do the following
fixes #123
).