Skip to content

Instantly share code, notes, and snippets.

@jmblog
Last active December 5, 2017 05:33
Show Gist options
  • Save jmblog/57042d5e6db32d94725991b94dbb13c9 to your computer and use it in GitHub Desktop.
Save jmblog/57042d5e6db32d94725991b94dbb13c9 to your computer and use it in GitHub Desktop.
Vanilla JS や TypeScript で Custom Elements を書く際の注意点 ref: https://qiita.com/jimbo/items/d17a121f815236c2f55b
Failed to construct 'HTMLElement': Please use the 'new' operator, this DOM object constructor cannot be called as a function.
{
"presets": ["env"],
"plugins": ["transform-custom-element-classes"]
}
{
"compilerOptions": {
"target": "ES6"
},
"include": ["src/**/*"],
"exclude": ["node_modules"]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment