Code Monkey home page Code Monkey logo

Comments (4)

illright avatar illright commented on May 18, 2024

Yeah, we've seen the warning. No way that I have seen so far to suppress this warning, wanted to reach out to Svelte developers about it, haven't gotten around to it yet.

from attractions.

aabounegm avatar aabounegm commented on May 18, 2024

We are using this option to compile a Web Components version of the library for easy use with other (or no) frameworks. However, we did not yet figure out how to disable that warning when using them with Svelte but without customElement, since for Svelte the component is imported from its source code and not the compiled version. Since this is arguably the most common use-case, we are thinking of ditching customElements altogether, but that would not be so great.
Ideally, the <svelte:options tag={}> part should be used only when compiling, and removed when importing directly. I looked through the documentation, StackOverflow, and GitHub issues, but couldn't figure it out. Do you have an idea how to do that?

from attractions.

RikuVan avatar RikuVan commented on May 18, 2024

No, I looked around a bit and didn't find anything. One option would be to remove the tag and then have a separate web components build that uses a script to insert the <svelte:options tag={}> in each file. Might be worth looking at how some other Svelte libraries achieve this, or ask about it in their Discord.

from attractions.

aabounegm avatar aabounegm commented on May 18, 2024

Should be fixed now in v2.2.3. Please update and check if the issue persists.

from attractions.

Related Issues (20)

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.