Comments (3)
If people are consuming a component written with this project in a Svelte app, they'll be consuming the original .svelte source files, and compiling them within their app, and so they'll be responsible for setting up whatever transpiling they need.
Transpiling within this project would only matter if someone were directly consuming the compiled js from this module in a non-Svelte project, then it'd be up to you, the consumable component author, to decide whether you wanted them to have to transpile (or, from the other side, whether you want to force transpiled code even on people who don't need it).
In either case, I don't think transpiling is something that belongs in the official template, but you can of course introduce it in components made from this template.
from component-template.
The official line is that support for ES5 is going to come from the project, not the component. Here's where the discussion is.
from component-template.
Very clear, thanks for the answer @Conduitry !
from component-template.
Related Issues (18)
- Repository as template
- Binding a DOM element doesn't work when imported in a different project HOT 1
- Build error: " `this` has been rewritten to `undefined` " HOT 2
- Advanced examples with multiple components? HOT 7
- warning: option.name should be capitalized
- some documentation suggestions HOT 1
- Storybook implementation HOT 3
- Document how to use a component outside of svelte HOT 2
- Add a TypeScript component template HOT 19
- Local dev server for building and testing components HOT 12
- What is the meaning of these lines in rollup.config.js? HOT 5
- Why does it need to be a template only project, why not a full CLI? HOT 4
- emitCss HOT 1
- Upgrade template for v3 of Svelte HOT 7
- Custom Element build target is missing HOT 2
- Preprocessor support HOT 13
- how to use it? what is .mjs file? HOT 1
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 component-template.