Brady Wied

Results 53 comments of Brady Wied

I can confirm that MRI lets you do `require './example'`. In that case, it seems to function like `require_relative` and does not look for 'example' in the load path, it...

@elia - I'm saying that require's behavior is unique in that case. Here's an example: Let's say I have this code. example.rb looks like this ``` ruby puts 'hello there'...

This would also make https://github.com/opal/opal/pull/1411 possible. We might want to see how JRuby solved this.

Is this mainly cosmetic/JS readability? I wouldn't think it would make much of a difference from an optimization standpoint

Ideally we add a simple smoke test of opal/mini to the travis build to catch this stuff in the future. @elia - since there are probably people that depend on...

Understood. I bet though, among the people on these threads, the 3/4/5 of us each do it a different way though and we have our reasons for doing so. React's...

In a way it would be nice if Bundler/rubygems let you ignore dependencies, but that probably opens a Pandora's box that's too dangerous.

@ajjahn - how are you going to configure that? You have to ensure that if the user doesn't want the bundled react, that sprockets doesn't load it (a Ruby condition...

Perhaps the simplest solution is to have a single GEM, leave the React source in there, but don't require it. Just make the user add the 1 additional require, e.g....

Not requiring it _would_ be enough. I just didn't think of that option until now. It's not exactly the easiest way for the user, but I'd say it's simple enough...