Comments (5)
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.
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.
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.
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.
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)
- Svelte 5: state_unsafe_mutation Updating state inside a derived is forbidden. If the value should not be reactive, declare it without `$state` HOT 2
- Svelte 5: Automatically implement toJSON so state and properties are serialized. HOT 3
- Ternary in html attributes doesn't compile for production HOT 2
- Svelte 5 bug when moving mouse HOT 6
- $state, $bindable without backup value become 'undefined' in $derived HOT 5
- Svelte 5: SSR breaks rendering of Select component when HMR is enabled HOT 19
- Data returned from load function is stateless HOT 2
- Svelte 5: Add `class:list` directive HOT 5
- Individual states seemingly working like a singleton? I don't even know how to caption this HOT 1
- Distinguish between properties and attributes on custom elements HOT 10
- [REPL] modifying file name to same value wipes contents HOT 1
- `$props` aliasing allows invalid names HOT 7
- Svelte5: unexpected `Component` type errors HOT 4
- Ability to ignore svelte warnings other than a11y HOT 2
- Svelte 5: only block root tags are checked for being closed HOT 9
- svelte5: while binding this to none-existing property on desctructed object, svelte adds the property HOT 4
- `<script context="module">` -> `<script module>` HOT 5
- PreventDefault on touchstart not working! HOT 13
- Svelte 5: `draggable="false"` gets rendered as `draggable="true"` when using `<svelte:element>`
- Svelte 5 performance of style and class directives
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 svelte.