We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Slow import Long time import
Speed regardless of the indication of allowJs
allowJs
Import without allowJs option takes about 0.5 ms Import with allowJs option is true takes about 43 ms
true
const fs = require("fs"); fs.writeFileSync(`${__dirname}/t1.cjs`, "module.exports = 1"); console.time(-1); const t = require("./t1.cjs"); console.timeEnd(-1); fs.unlinkSync(`${__dirname}/t1.cjs`);
{ "compilerOptions": { "allowJs": true, }, }
OR
{}
{ "devDependencies": { "ts-node": "^10.9.2", "typescript": "^5.6.2" }, }
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Search Terms
Slow import
Long time import
Expected Behavior
Speed regardless of the indication of
allowJs
Actual Behavior
Import without
allowJs
option takes about 0.5 msImport with
allowJs
option istrue
takes about 43 msSteps to reproduce the problem
allowJs
using and withoutMinimal reproduction
Specifications
OR
The text was updated successfully, but these errors were encountered: