Giter Site home page Giter Site logo

Comments (8)

nikku avatar nikku commented on September 27, 2024 2

I created nikku/svelte-loader and would be happy to contribute it.

from svelte.

nikku avatar nikku commented on September 27, 2024 1

We got svelte-loader released now. This issue can be closed.

from svelte.

TheLarkInn avatar TheLarkInn commented on September 27, 2024

This could also serve as a collection of ideas/features that could be leveraged. (IE vue has .vue templates for webpack etc. does a .svelte template defeat the simplicity purpose?, etc)

from svelte.

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

Thanks for the offer!

There definitely needs to be a svelte-loader plugin, I was going to get round to it eventually but I'd love some help on that front. It's pretty straightforward, the equivalent Rollup plugin is here – the compiler can generate ES modules or AMD, CJS, IIFE, UMD, so it should have everything we need out-of-the-box.

Want me to create a sveltejs/svelte-loader repo and add you as an admin?

Re .vue – I started out with .svelte files instead but I settled on .html as the preferred extension instead (though the Rollup plugin accepts either). It's just easier to get syntax highlighting and linting that way, no fussing around – and it's not just your editor, it's sourcemaps in your devtools as well. We've been doing that for years with Ractive .html components, and it works well.

from svelte.

TheLarkInn avatar TheLarkInn commented on September 27, 2024

Want me to create a sveltejs/svelte-loader repo and add you as an admin?

Yes! Although it may not be a immediate implementation at least it's an official medium that I can even enlist a few folks already interested in implementing as well. If you already have a rollup plugin, like you said, it should be pretty straight forward.

It's pretty straightforward, the equivalent Rollup plugin is here – the compiler can generate ES modules or AMD, CJS, IIFE, UMD, so it should have everything we need out-of-the-box.

Awesome, I'll check the plugin! Looking forward to help with this.

from svelte.

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

Youdaman! Here's the repo, have sent you an invite: https://github.com/sveltejs/svelte-loader

No worries if it doesn't happen straight away, as I say it's on my TODO list anyway – I've just never written a Webpack loader before so it might take me a while πŸ˜€

from svelte.

TheLarkInn avatar TheLarkInn commented on September 27, 2024

No sweatsky. Learning opportunity ftw!

from svelte.

TheLarkInn avatar TheLarkInn commented on September 27, 2024

Awesome work guys!!! πŸ‘πŸΌπŸ‘πŸΌ

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.