Skip to content

Conversation

@aheejin
Copy link
Member

@aheejin aheejin commented Jan 14, 2026

This makes 'names' field generation in source maps optional, turned off by default. This may be necessary if the source map size is often prohibitively large as in #26100, which I'm not sure is the common case yet.

This makes 'names' field generation in source maps optional, turned off
by default. This may be necessary if the source map size is often
prohibitively large as in emscripten-core#26100, which I'm not sure is the common case
yet.
// -gsource-map=inline
var EMBED_SOURCE_MAP_SOURCE = 0;
// -gsource-map=names
var GENERATE_SOURCE_MAP_NAMES = 0;
Copy link
Collaborator

Choose a reason for hiding this comment

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

I wonder if it would make sense to have SOURCE_MAP_ at the start of all these internal setting names?

Copy link
Member Author

Choose a reason for hiding this comment

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

Changed from -> to
GENERATE_SOURCE_MAP -> SOURCE_MAP_GENERATE
EMBED_SOURCE_MAP_SOURCE -> SOURCE_MAP_EMBED_SOURCE
GENERATE_SOURCE_MAP_NAMES -> SOURCE_MAP_GENERATE_NAMES

GENERATE_SOURCE_MAP -> SOURCE_MAP_GENERATE
EMBED_SOURCE_MAP_SOURCE -> SOURCE_MAP_EMBED_SOURCE
GENERATE_SOURCE_MAP_NAMES -> SOURCE_MAP_GENERATE_NAMES
@aheejin aheejin requested a review from dschuff January 14, 2026 22:24
@aheejin
Copy link
Member Author

aheejin commented Jan 22, 2026

Closing in favor of #26149.

@aheejin aheejin closed this Jan 22, 2026
@aheejin aheejin deleted the sourcemap_names_optional branch January 22, 2026 23:39
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.

2 participants