forked from zetachang/opalrb-loader
-
Notifications
You must be signed in to change notification settings - Fork 5
Open
Labels
Description
I've been wondering if this loader is really doing 2 things: presenting a "bootstrapped" version of Opal in Node and serving as webpack loader. What if this was split into 2 packages
-
Opal NPM - could also be called Opal bootstrap. This would include the compiler.rb patches, bundlerCheck/Execute, getRubyMetadata, and the getOpal*Filename.js files
-
Webpack loader - everything else
This would make it easier to implement #7 because a separate plugin could be developed that could modify webpack's "load path" but take advantage of the Opal NPM code above just like the loader does. No urgency here, but any thoughts @cj ?