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
the CoffeeScript variable is undefined because module.parent.children is an empty array.
The more straightforward require("coffee-script") does not work either, since there is no on method as noted in this issue with no obvious solution proposed that I can see: #1023
Running 1.4.0 if that matters.
The text was updated successfully, but these errors were encountered:
Thanks for reporting -- the hook/events were removed a while back, but the command-line switch was left in, and the wiki page wasn't deleted. I'll do those now.
Specifically, that which is documented here:
https://github.com/jashkenas/coffee-script/wiki/[Extensibility]-Hooking-into-the-Command-Line-Compiler
If I actually run that with something like
% coffee -r ./hook.coffee -c some_other_file.coffee
the
CoffeeScript
variable is undefined becausemodule.parent.children
is an empty array.The more straightforward
require("coffee-script")
does not work either, since there is noon
method as noted in this issue with no obvious solution proposed that I can see: #1023Running 1.4.0 if that matters.
The text was updated successfully, but these errors were encountered: