Skip to content

Commit

Permalink
fix: import cache
Browse files Browse the repository at this point in the history
  • Loading branch information
PengBoUESTC committed Jan 30, 2024
1 parent 2c42a73 commit 85fb51d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/req.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ async function req(name, rootFile = __filename) {
let url = createRequire(rootFile).resolve(name)

try {
return (await import(pathToFileURL(url).href)).default
return (await import(`${pathToFileURL(url).href}?t=${Date.now()}`)).default
} catch (err) {
if (!TS_EXT_RE.test(url)) {
/* c8 ignore start */
Expand Down

0 comments on commit 85fb51d

Please sign in to comment.