You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is a inherited problem from using sprockets. If we want to be able to require files in an exact place in ruby code, then we would probably have to add some client side storage of compiled files to be able to load them, e.g.:
And then require would work off some opal function:
opal.require=function(path){…};
Or, we could add some parser subclass for shooting off to require.js, or something similar, which could handle that for us.
(For what its worth, I will personally continue using opal-sprockets, but it is now removed from core, so opal-require-ms or similar would be just as useful).
This is a sprockets constraint, we have to find a solution because it becomes impossible to run code in gems, it's also extremely unintuitive.
The text was updated successfully, but these errors were encountered: