Skip to content

Conversation

@merryman
Copy link
Member

@merryman merryman commented May 26, 2025

Among other things, fixes #1640.
Still causes the builds to be much slower, due to the larger number of modules getting processed.
Will try to improve the performance here.

This PR depends on #1743 and consequently #1710.
Cannot be merged before.

@merryman merryman force-pushed the feature/transparent-import-maps branch from 31e85ef to 9e5fce9 Compare June 30, 2025 12:54
@merryman merryman marked this pull request as ready for review June 30, 2025 13:26
@merryman merryman requested a review from linusha June 30, 2025 13:28
@merryman merryman marked this pull request as draft July 25, 2025 09:20
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.
Source maps make the prettification unnessecary.
For some reason this appears to be nessecary with async modules.
This removes warnings from the bundling scripts.
for debug builds, it appears that rollup requires a lot of memory to process the source maps.
Some deps, need explicit mapping since either ga.jspm.io has a bug, or we have code that executes in the browser and in node.js.
@merryman merryman force-pushed the feature/transparent-import-maps branch from 5a06385 to 619f4a2 Compare October 27, 2025 11:43
@merryman merryman force-pushed the feature/transparent-import-maps branch from 8798770 to 9e5b53e Compare October 29, 2025 15: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.

JSPM.dev will be shutdown in 2026

2 participants