The following code shows how to install comment-loader using npm.
$ npm install git+https://github.com/daybrush/comment-loader.git
use comment
/*@ .... */
comment-loader remove comment
/*@export default */class Test {
//......
}
var ExportPlugin = require("es6-export-plugin");
module.exports = {
entry: 'example.js',
output: {
filename: 'bundle.js',
path: __dirname + "/dist/",
},
module: {
loaders: [
{
test: /\.js$/,
loader: 'comment-loader'
}
]
}
}
export default class Test {
//......
}