Skip to content

Conversation

@veracioux
Copy link
Contributor

No description provided.

@thdxr
Copy link
Contributor

thdxr commented Nov 1, 2025

this needs to be tested by running ./script/build.ts --single and verifying it doesn't break anything

"test": "bun test",
"build": "./script/build.ts",
"dev": "bun run --conditions=browser ./src/index.ts",
"dev": "NODE_ENV=development bun run --conditions=browser ./src/index.ts",
Copy link
Contributor

Choose a reason for hiding this comment

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

I doubt that without exporting the variable, it will work reliabily.

@kommander
Copy link
Collaborator

Thanks for checking, I saw this one yesterday and it should fix the issue #3778

@veracioux
Copy link
Contributor Author

There are a few PRs trying to address this. The problem with my fix here is that when you build using build.ts, the built executable sees NODE_ENV=development for some reason. I converted it to a draft because I wanted to find out how to make it NODE_ENV=production in the production version. I'm currently busy with the tests, so someone else can tackle this if they want to.

@jerome-benoit
Copy link
Contributor

Thanks for checking, I saw this one yesterday and it should fix the issue #3778

It's a way better fix. But you should really mention that you are trying to work around a bun bug: oven-sh/bun#15981 and that, at some point, it will be not needed anymore and rely on a bun version check.

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.

4 participants