Comments (5)
My HTMLElement subclasses are not being wrapped with your helper function
IIRC as long as the HTMLElement one is it should be fine ... or you should specify your classes in the list of classes that needs wrapping.
No idea about the CLI, it probably doesn't use the right .babelrc ?
from babel-plugin-transform-builtin-classes.
It should be using the .babelrc (the one in the root of your project) by default. There is a flag to tell it to not use the .babelrc.
Is that extra level of array [...] in your .babelrc plugins property intended?
from babel-plugin-transform-builtin-classes.
look here: https://github.com/WebReflection/babel-plugin-transform-builtin-classes#usage
You need to specify which builtin class you are willing to extend because it's basically impossible to know that at runtime.
HyperHTMLElement class uses this and it just works.
You can even extend N levels the HyperHTMLElement class and nothing happens.
So my next question would be: are you using a polyfill for Custom Elements ?
Is such polyfill a reliable one, like dre is?
from babel-plugin-transform-builtin-classes.
It looks like you are opining other issues but you are not answering this one.
I am closing this in few minutes if there's nothing to do.
Thanks for any sort of clarification.
from babel-plugin-transform-builtin-classes.
This issue was wondering why babel-cli run from the root of your project doesn't decorate your test class. I thought the crux of my problem might be caused because I was using the same .babelrc file from your project.
from babel-plugin-transform-builtin-classes.
Related Issues (14)
- IE11 "The custom element being constructed was not registered with 'customElements'" HOT 10
- Not working in Meteor. HOT 5
- It doesn't work in IE11 on windows 7 in combination with babel-polyfill HOT 7
- Not working with Node.js 8.9.0
- Not compatible with document-register-element for IE11 HOT 3
- Doesn't seem to work in Chrome v67 HOT 3
- path.inShadow not found (babel 7 support?) HOT 5
- _fixBabelExtend only injected upon first compile HOT 7
- Does not work with mixins HOT 8
- I'm using class factory mixins. HOT 14
- [feature request] support mixins HOT 4
- Providing a default set of native builtins? HOT 5
- Understanding when to use what. HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from babel-plugin-transform-builtin-classes.