Skip to content
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions lib/configuration.js
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,9 @@ const loaders = {
'.cjs': loadScriptOrModule,
'.mjs': loadScriptOrModule,
'.js': loadScriptOrModule,
'.cts': loadScriptOrModule,
'.mts': loadScriptOrModule,
'.ts': loadScriptOrModule,
Copy link
Member

@wooorm wooorm Jul 10, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should this not come before .js? Or is it intentional that built JS is preferred over TS

Next to docs, tests are missing

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Personally I think js configs should be preferred because they're supported natively and this is just old behavior, what means if a user have a .remarkrc.ts compiled into .remarkrx.js manually, this will continue work even on unsupported Node versions.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

good point, probably!

'.yaml': loadYaml,
'.yml': loadYaml
}
Expand Down