babel-plugin-ensure-name-for-custom-elements
This plugin makes sure that your custom elements always have a name property, even after minifying.
Example
In
Out
static { return "FooElement"; }
Installation
$ npm install babel-plugin-ensure-name-for-custom-elements
Usage
.babelrc
(Recommended)
Via .babelrc
Via CLI
$ babel --plugins ensure-name-for-custom-elements script.js
Via Node API
;