vite-plugin-virtual icon indicating copy to clipboard operation
vite-plugin-virtual copied to clipboard

Virtual modules plugin for Vite

Results 4 vite-plugin-virtual issues
Sort by recently updated
recently updated
newest added

Want to know if HMR is possible with this. i.e. If i update my virtual module, would it be possible to reload the module in HMR, instead of the whole...

I *think* changing `load(id: string)` to `async load(id: string)` on line [63](https://github.com/patak-dev/vite-plugin-virtual/blob/8e7e169d9351e1646fe490ddb867f1d594fc6123/src/index.ts#L63) and adding a line `module = await module` between lines [69 and 70](https://github.com/patak-dev/vite-plugin-virtual/blob/8e7e169d9351e1646fe490ddb867f1d594fc6123/src/index.ts#L69-L70) would allow loading virtual modules...

fix #14 I modeled this commit after 8253c82469e1cb6ac7c6c5ab70a7e7e77ccf3310

Please support Vite version 7 as a peer dependency.