Module: Opal::Sprockets::Processor::PlainJavaScriptLoader
- Defined in:
- lib/opal/sprockets/processor.rb
Class Method Summary collapse
Class Method Details
.call(input) ⇒ Object
142 143 144 145 146 147 148 149 150 151 152 |
# File 'lib/opal/sprockets/processor.rb', line 142 def self.call(input) sprockets = input[:environment] opal_extnames_regexp = Opal::Sprockets.sprockets_extnames_regexp(sprockets, opal_only: true) if input[:filename] =~ opal_extnames_regexp input[:data] else "#{input[:data]};#{Opal::Sprockets.loaded_asset(input[:name])}" end end |