Skip to content

Conversation

@kylebarron
Copy link
Member

@kylebarron kylebarron commented Oct 27, 2025

Change list

  • Various tsconfig and build script updates, mostly prompted by AI feedback

@github-actions github-actions bot added the chore label Oct 27, 2025
@kylebarron kylebarron requested a review from vgeorge October 27, 2025 22:56
Comment on lines +30 to +33
// Build sourcemaps when not in prod
sourcemap: node_env !== "production",
// Minify only in prod
minify: node_env === "production",
Copy link
Member Author

Choose a reason for hiding this comment

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

ideally slightly easier browser debugging to have sourcemaps on and minify off in dev builds

@kylebarron
Copy link
Member Author

I'm going to merge this for simpler debugging (with the sourcemap and minify changes) in #917

@kylebarron kylebarron enabled auto-merge (squash) October 28, 2025 15:56
@kylebarron kylebarron merged commit 7275a82 into main Oct 28, 2025
6 checks passed
@kylebarron kylebarron deleted the kyle/update-js-build-setup branch October 28, 2025 15:59
kylebarron added a commit that referenced this pull request Oct 28, 2025
After #981 I got an error:

> ▲ [WARNING] "process.env.NODE_ENV" is defined as an identifier instead
of a string (surround "development" with quotes to get a string)
[suspicious-define]

According to chatgpt:

> The define option replaces expressions at build time, so it’s a
literal text substitution. That means you must pass a valid JS
expression as a string, not an identifier.

Therefore we need to pass `JSON.stringify` into the input.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants