-
-
Notifications
You must be signed in to change notification settings - Fork 2.8k
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
chore(medusa): Re enable plugin loading #8843
Conversation
|
The latest updates on your projects. Learn more about Vercel for Git ↗︎
6 Skipped Deployments
|
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.
Nice LGTM
@olivermrbl shall we merge? |
Yeah, think that should be fine right? |
yeah it shouldnt be a problem |
Summary
This PR re-enables the ability to load resources from external packages through the
plugins
property in themedusa-config
.Resolves: FRMW-2678
What’s Changed
plugins
property inmedusa-config
now supports loading resources from external packages fromnode modules
,plugins
directory or any other relative path outside of the project.plugins
directory of the local project, the system will resolve it using the relative path and will load the resources from either itsdist
orsrc
directory, depending on how the project is started.plugins
directory of the local project, the system will resolve it using the relative path and will load the resources the directory itselfdist
Note:
Testing
I created and tested a plugin in a local dummy project using the following structure:
The test plugin successfully loaded and executed the following components:
Configuration Used: