---
title: "Discussion on \"which module to choose nodenext or esnext\" | Hashnode"
description: "Discussion on \"which module to choose nodenext or esnext\". Lets Understand what is nodenext and esnext which you usually find in tsconfig.json but don't know what these options actually does.\nBefore that you must have a basic understanding of esm and cjs.\nIn .js file if something is being exported, it become..."
url: "https://hashnode.com/posts/which-module-to-choose-nodenext-or-esnext/69678e8a0c19e185daa40b2a"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [which module to choose nodenext or esnext](https://shhekk.hashnode.dev/which-module-to-choose-nodenext-or-esnext?utm_source=hashnode&utm_medium=feed)

Lets Understand what is nodenext and esnext which you usually find in tsconfig.json but don't know what these options actually does. Before that you must have a basic understanding of esm and cjs. In .js file if something is being exported, it become...

Jan 14 · 4 min read · shhekk.hashnode.dev  
Read the article

-   [#nodenext](https://hashnode.com/tag/nodenext)
-   [#cjs-and-esm](https://hashnode.com/tag/cjs-and-esm)
-   [#cjs](https://hashnode.com/tag/cjs)
-   [#esm](https://hashnode.com/tag/esm)
-   [#tsconfig](https://hashnode.com/tag/tsconfig)
-   [#tsconfigjson](https://hashnode.com/tag/tsconfigjson)
-   [#ecmascript](https://hashnode.com/tag/ecmascript)
-   [#commonjs](https://hashnode.com/tag/commonjs)
-   [#esnext](https://hashnode.com/tag/esnext)

## Written by

[abhishek aadarsh](https://hashnode.com/@shhekk)

@shhekk

  
[View profile](https://hashnode.com/@shhekk)

notes for my future reference

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
