fix(esm-lib): address review feedback for pull_module_into_non_entry_chunks
- Sort chunk keys and module identifiers for deterministic iteration,
preventing nondeterministic output when multiple shared chunks compete
for the same module.
- Filter out DynamicImport/DynamicImportEager edges so that lazily
imported modules are not eagerly pulled into shared chunks.
- Disconnect entry-module mapping when moving a module that is registered
as an entry module, keeping the chunk graph consistent.
fix: only dedup init fragments when ns_import exists with matching attributes
Address review feedback:
- Only drop ModuleExternal init fragments when raw_import_stmts provides
a namespace import (ns_import) for the same source, not just any import.
Named-only imports don't provide the __rspack_external_<id> binding that
wrapped modules reference.
- Match full key including import attributes instead of stripping them,
preserving distinct imports with different `with { ... }` attribute sets.