Giter Site home page Giter Site logo

Comments (5)

Rich-Harris avatar Rich-Harris commented on September 27, 2024 2

This is kind of an interesting philosophical question. Normally the author of the code determines what license gets attached to it – if you use Svelte to generate code, who is the author of it? Presumably you are, since it's just a tool like any other (if you used autocomplete in your editor while typing code, you wouldn't consider the creator of the autocompletion logic to have any authorial claim – this is an extreme version of the same thing).

So, yeah – I would assume that @AfraidKnot has the right idea, and generated code doesn't fall under the MIT License (though it's complicated by the fact that it's generated from snippets that are covered under MIT). IANAL though, I'd be really interested to hear from anyone with a better understanding of this stuff.

from svelte.

AfraidKnot avatar AfraidKnot commented on September 27, 2024 1

Many compilers let the developer set the license of the generated code as they do with the input source code. I.E. the owners of the source have full control over the generated output. I do agree with @brodybits that a clarification or statement indicating the licensing of the generated code is needed.

from svelte.

R2D221 avatar R2D221 commented on September 27, 2024

In my opinion, you can see Svelte as part of the compiler. What logic do we use when deciding the license of output generated by a compiler?

from svelte.

Rich-Harris avatar Rich-Harris commented on September 27, 2024

Will close this as I don't think there's anything particular Svelte needs to do here — it's basically doing a more extreme version of what Babel does. If anyone with legal expertise knows better and can advise then let us know!

from svelte.

WofWca avatar WofWca commented on September 27, 2024

Here's the GPL's stance on this: https://www.gnu.org/licenses/gpl-faq.html#CanIUseGPLToolsForNF

So the generated code as a whole should not fall under the MIT license, but the runtime parts of Svelte do, so the license text should accompany them. Here's what LGPL says: https://www.gnu.org/licenses/lgpl-3.0.html#section4.

I guess then that a comment in the generated code needs to say something along the lines of this program uses Svelte, which is covered by the MIT license. See Svelte.LICENE.txt to make it clear that the license only applies to a part of it.

I'll try to do more research on how this can be properly automated.

from svelte.

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.