-
-
Notifications
You must be signed in to change notification settings - Fork 3.1k
Closed
Labels
type: questionsupport questionsupport question
Description
--compilers may be useless with later versions of Node.js, and commonly --require is sufficient instead. Example:
--compilers js:babel-register
Is better written as
--require babel-register
I don't know if this
--compilers coffee:coffee-script/register
Is equivalent to this:
--require coffee-script
If so, it's probably only true for some versions of Node.js and/or coffee-script.
If you use a different extension with Babel--say .es6--I think you would need --compilers? How does this work with TypeScript?
Regardless, --compilers js:some_module may always be better written with --require if that extension is .js. Something similar is noted in the docs.
ScottFreeCode and palaniichukdmytro
Metadata
Metadata
Assignees
Labels
type: questionsupport questionsupport question