Skip to content

Conversation

merryman
Copy link
Member

@merryman merryman commented Mar 6, 2025

Extends the source map support from #1710 to also cover frozen bundles. Cannot be merged before.

@merryman merryman linked an issue Mar 6, 2025 that may be closed by this pull request
@merryman merryman force-pushed the feature/freezer-source-map-support branch 2 times, most recently from edc2903 to a6f6e60 Compare March 12, 2025 17:45
@merryman merryman force-pushed the feature/freezer-source-map-support branch from 3d5cb65 to 1485339 Compare June 30, 2025 12:55
@merryman merryman marked this pull request as ready for review June 30, 2025 13:28
@merryman merryman requested a review from linusha June 30, 2025 13:29
merryman added 23 commits July 25, 2025 10:29
Apparently there is javascript code that manually freezes the classes/prototypes after they have been defined, which makes the in place re-initialization crash.
We now add an additional check in the transformed class that avoids running into that conflict.
Previously we would recycle the module url to pkg cache to allow us to retrieve the correct import map, which failed. We now use a dedicated import map cache, that takes care of merging overlapping import maps between different packages.
Parsing would sometimes fail in order to generate the needed ast nodes, due to variables defined outside of the parsed block.
Some of the previous changes caused crashes in the runtime source transform for lively.modules.
@merryman merryman force-pushed the feature/freezer-source-map-support branch from 1485339 to 10a74ff Compare July 25, 2025 08:30
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.

Debugging Worlds
1 participant