Comparing version
import * as commentParser from './modules/comment-parser/index.js'; | ||
import * as crossPlatform from './modules/cross-platform/index.js'; | ||
import * as path from 'node:path'; | ||
import * as url from 'node:url'; | ||
import * as utils from './utils/index.js'; | ||
@@ -33,3 +34,4 @@ import { LoadMode } from './load.interfaces.js'; | ||
if (jsFileExists && !utils.isFileNewer(tsFileExists, jsFileExists)) { | ||
const loaded = await import(jsPath); | ||
const fileUrl = url.pathToFileURL(jsPath).href; | ||
const loaded = await import(fileUrl); | ||
return loaded; | ||
@@ -43,3 +45,4 @@ } | ||
}); | ||
const loaded = await import(jsPath); | ||
const fileUrl = url.pathToFileURL(jsPath).href; | ||
const loaded = await import(fileUrl); | ||
return loaded; | ||
@@ -46,0 +49,0 @@ }; |
{ | ||
"name": "ts-import", | ||
"version": "5.0.0-beta.0", | ||
"version": "5.0.0-beta.1", | ||
"description": "Import (compile and cache on the fly) TypeScript files dynamically with ease.", | ||
@@ -5,0 +5,0 @@ "license": "MIT", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
60012
0.53%328
0.92%0
-100%