ScriptedAlchemy / webpack-external-import

Dynamically import modules from other webpack bundles. Painless code sharing between separate apps
BSD 3-Clause "New" or "Revised" License
415 stars 42 forks source link

Could this be used as a plugin framework? #178

Closed ChuckJonas closed 4 years ago

ChuckJonas commented 4 years ago

I've got an electron app that I'm interested in adding plugin support for..

My though was it would be easiest to just allow people to implement a component with specific prop types and then have the ability to "register" components with predefined contribution points via external paths:

{
  "welcome-banner": "path/to/my/welcome/banner"
} 

I understand this is kinda a security nightmare, but this is an internal tool and we can trust the code we are adding.

Curious if this plugin might help accomplish this goal

ChuckJonas commented 4 years ago

looks like webpack5 now supports this functionality natively, so I'll move the discussion there