1.0.3 • Published 9 years ago
babel-plugin-transform-move-comments-to-top v1.0.3
babel-plugin-transform-move-comments-to-top
Move comments to top of the file
Install
$ npm install babel-plugin-transform-move-comments-to-topUsage
.babelrc:
{
"plugins": ["transform-move-comments-to-top"]
}Caveats
plugins will execute after presets
transform-move-comments-to-top may not works when mixing it with other presets and plugins.
{
"presets": ["es2015"],
"plugins": ["transform-move-comments-to-top"]
}A possible solution is doing another transform using transform-move-comments-to-top.
babel src -d lib && babel lib -d lib --plugins transform-move-comments-to-topLicense
MIT © C.T. Lin