-
Notifications
You must be signed in to change notification settings - Fork 156
Closed
Labels
Description
I really want to be able to use source maps when using LiveScript in NodeJS, but it only seems to work for precompiled files. If I ask it to generate source maps when running LiveScript code on NodeJS, it will fail with the following error:
> lsc --map embedded file.ls
Failed at: file.ls
[SyntaxError: /path/to/file.ls:1
(function (exports, require, module, __filename, __dirname) { [object Object]
^^^^^^
Unexpected identifier]
It seems like a bug, because it fails on [object Object], which is seems like a bad call to toString.
For now I work around it by precompiling the LiveScript code, but I am new to using a transpiler like LiveScript in NodeJS, what is the best practice here? Do you store the generated JS in a separate folder and add this folder to the paths that the require function checks? Or how do you prevent the generated JS files from polluting your source folders?
Reactions are currently unavailable