Skip to content

Investigate deprecation of --compilers #2493

@boneskull

Description

@boneskull

--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.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions