Closed clkao closed 11 years ago
This now works:
plv8x --db tcp://localhost/test --import CoffeeScript:/tmp/coffee-script.js
psql test
test=# select |> '=> plv8x.require("CoffeeScript").compile "=> 1", {bare: 1}';;
?column?
----------------------------------------------------------
"var _this = this;\n\n(function() {\n return 1;\n});\n"
still need a way to bundle the extras/coffee-script.js dist by default.
onejs-bundled coffee-script dist can't be loaded, as it requires fs during compilation.