Skip to content

Commit ccf80bc

Browse files
committed
Typo
1 parent 13e0766 commit ccf80bc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

content/posts/2023-11-14_Is_NodeNext_Right_For_Libraries_That_Dont_Target_NodeJS.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ But Tim is right that this is imperfect. It’s definitely possible to construct
142142
143143
I think I would summarize as:
144144
145-
- `nodenext` is the write option for authoring libraries, because it prevents you from emitting ESM with module specifiers that _only_ work in bundlers but will crash in Node.js. When writing conventional code, using common sense, and relying on high-quality dependencies, its output is usually highly compatible with bundlers and other runtimes.
145+
- `nodenext` is the right option for authoring libraries, because it prevents you from emitting ESM with module specifiers that _only_ work in bundlers but will crash in Node.js. When writing conventional code, using common sense, and relying on high-quality dependencies, its output is usually highly compatible with bundlers and other runtimes.
146146
- There is no TypeScript option specifically meant to enforce patterns that result in maximum cross-environment portability.
147147
- When stronger guarantees of portability are needed, there is no substitute for runtime testing your output.
148148
- However, a lower effort and reasonably good confidence booster would be to run `tsc --noEmit` under different `module`/`moduleResolution` options.

0 commit comments

Comments
 (0)