Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

refactor(common): Switch TypeScriptmodule tonode16#14976

New issue

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Draft
Borewit wants to merge1 commit intonestjs:master
base:master
Choose a base branch
Loading
fromBorewit:enable-ts-dynamic-import

Conversation

@Borewit
Copy link
Contributor

Switch Node.js compiler optionmodule fromcommonjs tonode16, to preserve dynamic import. Withcommonjs these are converted torequire. This allows to deprecate theload-esm dependency, introduced in1e43fcb.

PR Checklist

Please check if your PR fulfills the following requirements:

PR Type

What kind of change does this PR introduce?

  • Bugfix
  • Feature
  • Code style update (formatting, local variables)
  • Refactoring (no functional changes, no api changes)
  • Build related changes
  • CI related changes
  • Other... Please describe:

What is the current behavior?

Usesload-esm to be able to load ESM module file-type.

Improvement of#14974.

What is the new behavior?

Switches to a more modern version of CommonJS in the TypeScript compiler, which allow dynamic import, which no longer requiresload-esm.

Does this PR introduce a breaking change?

  • Yes
  • No

Other information

saullo reacted with thumbs up emoji
@BorewitBorewitforce-pushed theenable-ts-dynamic-import branch 3 times, most recently from1a88ce2 to7eed6f0CompareApril 16, 2025 18:49
@kamilmysliwiec
Copy link
Member

image

image

@BorewitBorewitforce-pushed theenable-ts-dynamic-import branch 6 times, most recently from83b01ee to8f1537bCompareApril 17, 2025 19:05
@BorewitBorewit marked this pull request as draftApril 18, 2025 13:22
@BorewitBorewitforce-pushed theenable-ts-dynamic-import branch 5 times, most recently fromb429908 toa8ca949CompareApril 18, 2025 14:04
fix(deps): update dependency fastify to v5.3.1
@BorewitBorewitforce-pushed theenable-ts-dynamic-import branch froma8ca949 to159dfa5CompareApril 18, 2025 14:15
@Borewit
Copy link
ContributorAuthor

@kamilmysliwiec you mind have look at remaining failing unit tests?

The FileTypeValidator does not seem to recognize any file running in CircleCI.
If I runnpm run test:cov local, all tests pass.

Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

No reviews

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

2 participants

@Borewit@kamilmysliwiec

[8]ページ先頭

©2009-2025 Movatter.jp