Coder Social home page Coder Social logo

Comments (5)

WebReflection avatar WebReflection commented on May 28, 2024

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.

oravecz avatar oravecz commented on May 28, 2024

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.

WebReflection avatar WebReflection commented on May 28, 2024

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.

WebReflection avatar WebReflection commented on May 28, 2024

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.

oravecz avatar oravecz commented on May 28, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.