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
Debugged this a bit and found out that there occurs some conflict with "filename" and "moduleName" options passed to traceur compiler. If both options are specified then filename is used as module name, which is of course incorrect.
Quick fix
...
module Traceur
class Compiler
...
def compile_file(infile, opts = {})
...
# HACK KI filename vs. moduleName conflict
options.filename = options.moduleName
runner.run(
arguments: [compile_script_path, infile.path, outfile.path, options.to_json],
on_error: ->(r) { raise CompilationError.parse(r.stderr) }
).stdout
...
end
end
Version 0.0.2 worked fine, but it seems that version 0.0.4 has something wrong going with module registration names.
For example,
I have module "/app/assets/javascripts/init.es6", with 0.0.2 it's registered as
But with 0.0.4 it seems to get registered as
And same for all modules. Naturally this causes that transpiled result doesn't work at all since all module references are broken.
The text was updated successfully, but these errors were encountered: