Skip to content

Aphorica/read-plugin

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

@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.

NOTE: Is this a security issue? Might be in a web context, less convinced it's an issue in an electron environment (where I'm currently using it.)

About

Read and parse a JS file dynamically

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published