Skip to content

Conversation

@Aryan-SINGH-GIT
Copy link
Contributor

@Aryan-SINGH-GIT Aryan-SINGH-GIT commented Dec 1, 2025

Fixes issue: #1862

Solution:
Adds basename matching for D2D mapping when file extensions differ between deployment and development (e.g., .ts → .js, .scss → .css).

Changes:

  • Added BASENAME_EXTENSION_MAP for extension transformations
  • Added get_basename_without_extension() to handle compound extensions and .bak files
  • Added find_basename_matches() for basename based matching
  • Integrated basename matching as fallback in _map_path_resource() and _map_javascript_path_resource()
  • Added test coverage
image

Signed-off-by: Aryan Singh aryansingh12oct2005@gmail.com

Signed-off-by: Aryan-SINGH-GIT <aryansingh12oct2005@gmail.com>
Signed-off-by: Aryan-SINGH-GIT <aryansingh12oct2005@gmail.com>
Signed-off-by: Aryan-SINGH-GIT <aryansingh12oct2005@gmail.com>
Signed-off-by: Aryan-SINGH-GIT <aryansingh12oct2005@gmail.com>
Signed-off-by: Aryan-SINGH-GIT <aryansingh12oct2005@gmail.com>
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.

1 participant