Babel Plugin Ensure Name For Custom Elements
Description
This plugin makes sure that your custom elements always have a name property, even after minifying.
Installation
This entry records only its repository, not the path inside it, so there is no
exact command to give. Open the source below and copy the folder into
~/.claude/skills/, or the file into ~/.claude/agents/.
README
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**
class FooElement extends HTMLElement { }
**Out**
class FooElement extends HTMLElement {
static get name() {
return "FooElement";
}
}
Installation
$ npm install babel-plugin-ensure-name-for-custom-elements
Usage
Via `.babelrc` (Recommended)
**.babelrc**
{
"plugins": ["ensure-name-for-custom-elements"]
}
Via CLI
$ babel --plugins ensure-name-for-custom-elements script.js
Via Node API
require("babel-core").transform("code", {
plugins: ["ensure-name-for-custom-elements"]
});
Related Skills
Awesome Go
A curated list of awesome Go frameworks, libraries and software
Development next.js
| The React Framework | 138360 | 1503 | 1 |
Development sharing-skills
skill for guidance.
Development root-cause-tracing
Use when errors occur deep in execution and you need to trace back to find the original trigger.
Development Template Skill
Minimal skeleton for a new skill project structure.
Development Third-party Notices
THE FOLLOWING SETS FORTH ATTRIBUTION NOTICES FOR THIRD PARTY SOFTWARE THAT MAY BE CONTAINED IN PORTIONS OF THI
Development