@faapi/faapi 1.0.1-canary.218585b → 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/index.js CHANGED
@@ -1018,7 +1018,16 @@ var loadTs;
1018
1018
  function setLoadTimestamp(ts6) {
1019
1019
  loadTs = ts6;
1020
1020
  }
1021
+ function getVitestImportActual() {
1022
+ const vi = globalThis.vi;
1023
+ if (typeof vi?.importActual !== "function") return void 0;
1024
+ return vi.importActual.bind(vi);
1025
+ }
1021
1026
  async function importWithCacheBust(filePath) {
1027
+ const importActual = getVitestImportActual();
1028
+ if (importActual) {
1029
+ return await importActual(filePath);
1030
+ }
1022
1031
  let url = pathToFileURL(filePath).href;
1023
1032
  if (loadTs !== void 0) {
1024
1033
  url += `?t=${loadTs}`;