Skip to content

fix(csv-stringify): avoid Node globals in browser types - #501

Open
be-student wants to merge 1 commit into
adaltas:masterfrom
be-student:codex/476-browser-types
Open

fix(csv-stringify): avoid Node globals in browser types#501
be-student wants to merge 1 commit into
adaltas:masterfrom
be-student:codex/476-browser-types

Conversation

@be-student

Copy link
Copy Markdown
Contributor

Fixes #476.

Keep the Node type reference in Node declarations, but remove it from the generated browser ESM declaration. A browser-only TypeScript fixture prevents ambient Node globals from returning.

Tests: csv-stringify type checks; browser fixture; 209 tests on Node 24; ESLint and Prettier.

@wdavidw

wdavidw commented Sep 6, 2026

Copy link
Copy Markdown
Member

I hesitate. Not being a TS expert, I understand that importing node types definition is not necessary in a browser environment. At the same time, no one ever complained until now which make me think it is not blocking and the proposition increase the complexity of the build system when I wish to simplify it.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

csv-stringify Browser ESM entry points pollute global types with Node types

2 participants