Function: cacheBustUrl()
ts
function cacheBustUrl(filePath): string;Defined in: packages/core/src/server/DevServer.ts:210
Create a cache-busting import URL for ESM modules. Appends a timestamp query to force the module to be re-evaluated.
Use this inside a DevServer setup callback to re-import ESM modules:
ts
const mod = await import(cacheBustUrl('./src/tools.ts'));Parameters
| Parameter | Type |
|---|---|
filePath | string |
Returns
string