-
Notifications
You must be signed in to change notification settings - Fork 264
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
Update override-existing-javascript.md #1556
base: main
Are you sure you want to change the base?
Conversation
Nico-Schaefer-2111
commented
Nov 13, 2024
- add note for overriding async JS-Plugin
- add note for overriding async JS-Plugin
Thank you, but I think this is not an ideal solution, as the path depends on how the plugin is installed, and it is not always possible to know how a plugin is installed, for example when one has a store plugin, which extends another store plugin. I tried to configure the one plugin as webpack path, to import it not via the relative path, but I did not manage to get it working. I will have a closer look into that when I am back from my holidays. |
@aragon999 thanks, this kind of implementation is triggering me either. But I couldn't find another solution for this. |
Hi, sorry for my late reply. I agree that this solution is not looking nice with the ugly path. I think the problem is, that the prior example with Because the A webpack alias could be an alternative to avoid the path at least in the code. But like @aragon999 already said this can be tricky to determine the actual path. And it also requires a custom webpack config which was not needed before. We could try to automatically generate an alias for each bundle inside the core webpack config so that you have always something like Or solving it on a programmatic level, that we have something like |
Maybe it is better suited here then? -> https://github.com/shopware/shopware/discussions As for helping developers till then, what about a more generic info, like: "For async plugins you need to import it via an absolute path where your plugin is located" (since it could also be located in custom/plugins etc.) |