New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Using webpack aliases in simorgh #3542
Conversation
cypress/integration/specialFeatures/cookieBanner/testsForAMPOnly.js
Outdated
Show resolved
Hide resolved
cypress/integration/specialFeatures/cookieBanner/testsForCanonicalOnly.js
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Found those in storybook and cypress need reverting, they don't share the same webpack setup so cannot use these aliases at all
FYI @hindsc52 @dr3 Ok so problems in order:
Is all this worth the aliases? I thought this'd be easy when I wrote the issue. I'm tempted to revert the addition of aliases and not do this at all. Horrifying that such an innocuous seeming PR can cause a confusing thing as a passing build with nearly everything outside the main app failing. PS how can we avoid all tests not running and the build still passing in future PRs? That seems much more important to fix that anything we're trying to do here. PPS @oluoluoxenfree don't let this get you down, we all missed the dragons herein when we approved the preparatory PR - maybe Chris or Drew have a quickfix, but I can't think of one. |
@benjaminhobbs can we not do something like this? |
I am closing this PR, to continue it here : #3707 |
Resolves #2567
Overall change:
Uses webpack directory aliasing previously set up in #3318
Code changes: