@aphorica/read-plugin
v1.0.0
Published
Loads and parses js file
Downloads
3
Readme
@aphorica/read-plugin
Load, parse, and return an interpreted plugin object.
Seems like in the past, 'require' worked in a dynamic context, but no more, especially in a webpack environment.
Alternative is to load all plugins at once into something like an indexed group and access them from the group as needed.
I'd just as soon keep unused code out of the build, if I can.