Initial checklist
Problem
https://nodejs.org/en/learn/typescript/run-natively
Custom remark config path with, for example, remarkrc.ts
Current solutions
N/A
Proposed solutions
Just add .ts, .mts .ts into:
|
const loaders = { |
|
'.json': loadJson, |
|
'.cjs': loadScriptOrModule, |
|
'.mjs': loadScriptOrModule, |
|
'.js': loadScriptOrModule, |
|
'.yaml': loadYaml, |
|
'.yml': loadYaml |
|
} |
I tried with Node 24 it runs very well, but with Node 22, it throws unknown extension .ts at
|
const result = await import(fileUrl) |
Initial checklist
Problem
https://nodejs.org/en/learn/typescript/run-natively
Custom remark config path with, for example,
remarkrc.tsCurrent solutions
N/A
Proposed solutions
Just add
.ts,.mts.tsinto:unified-engine/lib/configuration.js
Lines 97 to 104 in 6f35eae
I tried with Node 24 it runs very well, but with Node 22, it throws unknown extension
.tsatunified-engine/lib/configuration.js
Line 530 in 6f35eae