Skip to content

Add some JH aliases for webpack and jest

ORIGINAL TITLE: Add multi-path support for webpack alias

What does this MR do and why?

EDIT:

This MR introduces some missing JH aliases like jh_else_ee and any_else_ce (which looks for a module in all JH/EE/CE).

ORIGINAL:

Introduce `enhanced-resolve/lib/AliasPlugin` to support multi-path alias. Refer to: https://github.com/webpack/webpack/issues/6817#issuecomment-542448438

So we could resolve alias array like jh_else_ee, it will match different path in JH/EE/CE as a fallback

MR acceptance checklist

This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.

Related to #345477 (closed)

Edited by Paul Slaughter

Merge request reports

Loading