@faapi/faapi 1.0.1 → 1.0.2-canary.d22d5d3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/cli/index.js CHANGED
@@ -1737,7 +1737,16 @@ import { pathToFileURL } from "url";
1737
1737
  function setLoadTimestamp(ts7) {
1738
1738
  loadTs = ts7;
1739
1739
  }
1740
+ function getVitestImportActual() {
1741
+ const vi = globalThis.vi;
1742
+ if (typeof vi?.importActual !== "function") return void 0;
1743
+ return vi.importActual.bind(vi);
1744
+ }
1740
1745
  async function importWithCacheBust(filePath) {
1746
+ const importActual = getVitestImportActual();
1747
+ if (importActual) {
1748
+ return await importActual(filePath);
1749
+ }
1741
1750
  let url = pathToFileURL(filePath).href;
1742
1751
  if (loadTs !== void 0) {
1743
1752
  url += `?t=${loadTs}`;