Skip to content

Conversation

@wch
Copy link
Collaborator

@wch wch commented Mar 8, 2025

This updates and streamlines the build.ts script. Note that this PR builds on #1893, so until that PR is merged, the diff here will look larger than the real changes compared to #1893. (The only relevant changes here are to build.ts.)

Some notable things:

  • Metafiles are generated by default now.
  • The metafile now contains information for all of the built assets, not just one.
  • Previously, many of the assets had their own settings for sourcemap, minify, and metafile. I don't know why that would be desirable, so I removed that.

The merged metafile, when viewed at https://esbuild.github.io/analyze/, looks like this:

image

@wch wch requested a review from schloerke March 8, 2025 17:09
@schloerke schloerke enabled auto-merge (squash) March 11, 2025 17:01
@schloerke schloerke merged commit afc7698 into main Mar 11, 2025
41 checks passed
@schloerke schloerke deleted the update-build-ts branch March 11, 2025 17:07
schloerke added a commit that referenced this pull request Mar 11, 2025
* main:
  chore: Use details for extra info from error message (#1903)
  ci: adds action to lint conventional commits (#1902)
  build: JS build script updates (#1894)
  chore: Rename temp environ names (for launching browser) to avoid conflict with local environ names (#1899)
  build: Update shiny TS types to Shiny 1.10.0 (#1893)
  chore: Use `shiny.module` to import re-exported values from `shiny._namespaces` (#1898)
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.

3 participants