tessl install tessl/npm-coffeescript@2.7.0A programming language that compiles into JavaScript, offering more concise and readable syntax while maintaining full JavaScript compatibility.
Agent Success
Agent success rate when using this tile
77%
Improvement
Agent success rate improvement when using this tile compared to baseline
1.01x
Baseline
Agent success rate without this tile
76%
A utility that compiles and loads CoffeeScript modules with ES6 import/export syntax support.
Compile CoffeeScript code containing ES6 import statements into JavaScript that preserves the import syntax.
import { add } from './math', the compiled output contains a valid ES6 import statement @testimport Calculator from './calc', the compiled output contains the correct default import @testCompile CoffeeScript code containing ES6 export statements into JavaScript that preserves the export syntax.
export add = (a, b) -> a + b, the compiled output contains a valid named export @testexport default class Calculator, the compiled output contains the correct default export @testWhen compiling modules with import or export statements, the compiler automatically activates bare mode (no function wrapper).
@generates
# Compiles CoffeeScript code and returns JavaScript output
# @param {String} code - The CoffeeScript source code to compile
# @return {String} The compiled JavaScript code
export compileModule = (code) ->
# Checks if compiled code is in bare mode (no wrapper function)
# @param {String} code - The CoffeeScript source code
# @return {Boolean} True if the compiled output is in bare mode
export isBareMode = (code) ->Provides CoffeeScript compilation with ES6 module support.
@satisfied-by