Skip to content

Instantly share code, notes, and snippets.

@jmblog

jmblog/file0.txt

Last active Dec 5, 2017
Embed
What would you like to do?
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