Sha256: 0f4f5e31929e278d2e48d441d46399a87b9bb81f3ea4a4ccd5d35604ade096c5
Contents?: true
Size: 729 Bytes
Versions: 1
Compression:
Stored size: 729 Bytes
Contents
require 'es6_module_transpiler/rails/version' require 'es6_module_transpiler/tilt' require 'es6_module_transpiler/sprockets' module ES6ModuleTranspiler def self.compile_to @compile_to || :amd end def self.compile_to=(target) @compile_to = target end def self.prefix_patterns @prefix_patterns ||= [] end def self.add_prefix_pattern(pattern, prefix) prefix_patterns << [pattern, prefix] end def self.lookup_prefix(path) _, prefix = prefix_patterns.detect {|pattern, prefix| pattern =~ path } prefix end def self.transform=(transform) @transform = transform end def self.transform @transform end def self.compiler_options @compiler_options ||= {} end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
es6_module_transpiler-rails-0.4.0 | lib/es6_module_transpiler/rails.rb |