We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8ad0fcf commit b05e307Copy full SHA for b05e307
guide/api-plugin.md
@@ -113,7 +113,7 @@ Virtual modules are a useful scheme that allows you to pass build time informati
113
114
```js
115
export default function myPlugin() {
116
- const virtualModuleId = '@my-virtual-module'
+ const virtualModuleId = 'virtual:my-module'
117
const resolvedVirtualModuleId = '\0' + virtualModuleId
118
119
return {
@@ -135,7 +135,7 @@ export default function myPlugin() {
135
Which allows importing the module in JavaScript:
136
137
138
-import { msg } from '@my-virtual-module'
+import { msg } from 'virtual:my-module'
139
140
console.log(msg)
141
```
0 commit comments