-
-
Notifications
You must be signed in to change notification settings - Fork 24
Open
Labels
🤞 phase/openPost is being triaged manuallyPost is being triaged manually
Description
Initial checklist
- I read the support docs
- I read the contributing guide
- I agree to follow the code of conduct
- I searched issues and discussions and couldn’t find anything (or linked relevant results below)
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:
unified-engine/lib/configuration.js
Lines 97 to 104 in 6f35eae
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
unified-engine/lib/configuration.js
Line 530 in 6f35eae
const result = await import(fileUrl) |
Metadata
Metadata
Assignees
Labels
🤞 phase/openPost is being triaged manuallyPost is being triaged manually