2019-05-02 18:17:27 -04:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
2014-05-05 18:04:09 -04:00
|
|
|
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.transform=(transform)
|
|
|
|
@transform = transform
|
|
|
|
end
|
|
|
|
|
|
|
|
def self.transform
|
|
|
|
@transform
|
|
|
|
end
|
|
|
|
|
|
|
|
def self.compiler_options
|
|
|
|
@compiler_options ||= {}
|
|
|
|
end
|
|
|
|
end
|