Skip to content
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 our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

nestjs: use ESM modules #271

Merged
merged 4 commits into from
Sep 5, 2024
Merged

nestjs: use ESM modules #271

merged 4 commits into from
Sep 5, 2024

Conversation

perf2711
Copy link
Contributor

This PR adds ESM module support to nestjs.

nestjs is now bundled into two files:

  • bundle.mjs - ESM modules
  • bundle.cjs - CommomJS (Node) modules

@perf2711 perf2711 added the enhancement New feature or request label Aug 22, 2024
@perf2711 perf2711 requested a review from konraddysput August 22, 2024 13:14
@perf2711 perf2711 self-assigned this Aug 22, 2024
@@ -41,23 +43,23 @@
"/lib"
],
"devDependencies": {
"@backtrace/node": "^0.3.1",
Copy link
Collaborator

Choose a reason for hiding this comment

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

why backtrace/node is a dev dependency here?

Copy link
Contributor Author

@perf2711 perf2711 Aug 30, 2024

Choose a reason for hiding this comment

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

good catch, should be in normal deps, changed

@perf2711 perf2711 force-pushed the feature/esm-modules--nestjs branch 4 times, most recently from 7db3a04 to 380709f Compare September 2, 2024 15:49
@perf2711 perf2711 force-pushed the feature/esm-modules--nestjs branch from 380709f to 141c656 Compare September 4, 2024 09:06
@perf2711 perf2711 merged commit b284e4f into main Sep 5, 2024
5 checks passed
@perf2711 perf2711 deleted the feature/esm-modules--nestjs branch September 5, 2024 08:20
@perf2711 perf2711 mentioned this pull request Sep 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants