Description
Will JS files coming from engines be available to be required in pack
?
My use case is a library that's composed by many pluggable engines, some of them having complex react components I'm currently building with webpack. I'd like to somehow be able to create a single compiled file in the end at the application level.
One solution would be to add a bundle.js
file for each engine and version control it into the repo, but then I'm duplicating dependencies - react, for example, as well as any other one.
In my scenario, the ideal solution is to have a single entry point in my application that requires files from engines, the same way they would be required if they were npm packages.
So, in my application.js
file, I'd like to have:
require('plugin1/application.js');
require('plugin2/application.js');
Thanks for making the effort to integrate webpack into rails!