Remove JS Doc comments from custom function defintion
xMarcinator opened this issue · comments
Marcinator commented
When bundling with a function to global space it copies the JS DOC as the purpose of the plugin but would it be possible to remove the comment from the function definition in production mode to keep comments to a minimum.
In practice would this code:
/**
* Return write arguments.
* @customfunction
*/
function echo() {
}
//webpack stuff
var echo = () => console.log('hello');
/**
* Return write arguments.
* @customfunction
*/
__webpack_require__.g.echo = echo;
/******/ })()
;
Become this:
/**
* Return write arguments.
* @customfunction
*/
function echo() {
}
//webpack stuff
var echo = () => console.log('hello');
__webpack_require__.g.echo = echo;
/******/ })()
;
(Sorry if I'm doing this wrong this is my first issue submission)