svelte-preprocess VS imba

Compare svelte-preprocess vs imba and see what are their differences.

svelte-preprocess

A ✨ magical ✨ Svelte preprocessor with sensible defaults and support for: PostCSS, SCSS, Less, Stylus, Coffeescript, TypeScript, Pug and much more. (by sveltejs)
Our great sponsors
  • SurveyJS - Open-Source JSON Form Builder to Create Dynamic Forms Right in Your App
  • WorkOS - The modern identity platform for B2B SaaS
  • InfluxDB - Power Real-Time Data Analytics at Scale
svelte-preprocess imba
23 45
1,703 6,229
0.9% 0.5%
5.7 9.5
about 1 month ago about 1 month ago
TypeScript JavaScript
MIT License MIT License
The number of mentions indicates the total number of mentions that we've tracked plus the number of user suggested alternatives.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.

svelte-preprocess

Posts with mentions or reviews of svelte-preprocess. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2023-02-13.
  • How does the Svelte compiler works with the Typescript compiler?
    2 projects | /r/sveltejs | 13 Feb 2023
    svelte-preprocess is responsible for processing things like TypeScript and SCSS. The svelte compiler itself is only responsible for turning the svelte file into JavaScript.
  • Sveltekit scss issue
    2 projects | /r/sveltejs | 9 Jan 2023
    svelte-preprocess should handle scss out-of-the-box, and it’s included in SvelteKit by default if you created your project with create-svelte
  • PostCSS- NESTED --- How can i use it inside a component
    3 projects | /r/sveltejs | 27 Apr 2022
    Have you tried https://github.com/sveltejs/svelte-preprocess
  • Supercharge Web DX in Svelte way
    5 projects | dev.to | 20 Feb 2022
    // svelte.config.js import preprocess from 'svelte-preprocess' import adapter from '@sveltejs/adapter-static' /** @type {import('@sveltejs/kit').Config} */ const config = { // Consult https://github.com/sveltejs/svelte-preprocess // for more information about preprocessors preprocess: [preprocess({ postcss: true })], kit: { // I can even build php file which I can use in current project seamlessly! adapter: adapter({ fallback: 'myapp.php' }), files: { assets: 'src/assets', }, appDir: 'myapp', } } export default config
  • SvelteKit error: "[vite] Error when evaluating SSR module" when using ssh2-promise
    2 projects | /r/sveltejs | 5 Jan 2022
    /** @type {import('@sveltejs/kit').Config} */ const config = { // Consult https://github.com/sveltejs/svelte-preprocess // for more information about preprocessors preprocess: preprocess(),
  • Testing Svelte components with Jest and Vite
    8 projects | dev.to | 18 Nov 2021
    We need to configure Jest to transform our files. We must explicitly set our test environment to jsdom, which we are using through Jest. Since v27 Jest's default test environment is node. I will put the configuration in a specific Jest configuration file called jest.config.json in the project root folder. If you create a configuration file called jest.config.js, Vite will complain as it expects only ESM JavaScript by default. Vite will recommend that you rename it to a ".cjs" file if you want to do it that way. You can look at the different ways to configure Jest if you are unsure about the file conventions. If you're using TypeScript, you need to configure svelte-preprocess and ts-jest also, see the svelte-jester docs for how to do that.
  • What if someone made a better svelte? Would people be interested?
    3 projects | /r/sveltejs | 20 Oct 2021
    If you want to write pug, there are tools that allow you to do that: https://github.com/sveltejs/svelte-preprocess
  • Getting started with Svelte, Tailwind, and Nrwl NX
    7 projects | dev.to | 17 Oct 2021
    All this file does is export a configuration object for the build of our Svelte application. By default, it uses the svelte-preprocess package, which is a preprocessor for Svelte providing support for PostCSS, SCSS, TypeScript, and much more.
  • SvelteKit - How to set up global SCSS accessible to all components?
    2 projects | /r/sveltejs | 11 Sep 2021
    import preprocess from 'svelte-preprocess' import path, { dirname } from 'path' import { fileURLToPath } from 'url' import adapter from '@sveltejs/adapter-node' const filePath = dirname(fileURLToPath(import.meta.url)) const sassPath = `${filePath}/src/lib/style/` const config = { // Consult https://github.com/sveltejs/svelte-preprocess // for more information about preprocessors preprocess: preprocess({ scss: { prependData: `@import '${sassPath}_global-imports.scss';` } }), .... } export default config
  • Make an Email Form Submission with SvelteKit
    3 projects | dev.to | 8 Sep 2021
    import adapter from '@sveltejs/adapter-vercel' import { mdsvex } from 'mdsvex' import preprocess from 'svelte-preprocess' import mdsvexConfig from './mdsvex.config.js' /** @type {import('@sveltejs/kit').Config} */ const config = { extensions: ['.svelte', ...mdsvexConfig.extensions], // Consult https://github.com/sveltejs/svelte-preprocess // for more information about preprocessors preprocess: [ mdsvex(mdsvexConfig), [ preprocess({ postcss: true, }), ], ], kit: { target: '#svelte', adapter: adapter(), }, } export default config // Workaround until SvelteKit uses Vite 2.3.8 (and it's confirmed to fix the Tailwind JIT problem) const mode = process.env.NODE_ENV const dev = mode === 'development' process.env.TAILWIND_MODE = dev ? 'watch' : 'build'

imba

Posts with mentions or reviews of imba. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2023-12-02.
  • Ask HN: What are some unpopular technologies you wish people knew more about?
    56 projects | news.ycombinator.com | 2 Dec 2023
    Imba. The best web programming language ever made.

    https://imba.io/

  • Portugal. The Man – Official Website Is a Google Sheets Document
    7 projects | news.ycombinator.com | 3 Nov 2023
    I agree. I was looking for the same thing.

    They’re not easy to create but side by side code/result demos like the ones I saw on https://imba.io/ make it very clear on what I’ll be getting into as a developer.

  • Imba – The friendly full-stack language
    6 projects | news.ycombinator.com | 23 Sep 2023
  • Clojure is a product design tool
    8 projects | news.ycombinator.com | 22 Jun 2023
  • Fore – Declarative user interfaces in plain HTML
    2 projects | news.ycombinator.com | 4 Jun 2023
  • Framework for a frontend-only project?
    5 projects | /r/Frontend | 15 Apr 2023
    You might get away with Svelte (not Sveltekit) here since it compiles down to javascript. Another fun framework to try out for this might be https://imba.io/, which also has an option to compile things down to pure HTML, CSS & JS (plus it’s very fun to work with).
  • Thoughts on Svelte
    15 projects | news.ycombinator.com | 27 Mar 2023
    I've been using Svelte exclusively for the past 3 years or so. I love it and will keep using it as my main solution for interactivity. It's fast to use and execute, produces small apps, and it's extremely economical in how you express components.

    The confusion the author expresses with $: reactive statements and store auto subscription with the $ are unwarranted IMO. It's really just a lack of familiarity but this kind of stuff becomes intuitive very quickly.

    My criticism of Svelte is rather that they haven't gone deep enough into the compiler-based approach.

    Would be great if there were something like .svelteStore files where you had all the automatic reactivity tracking without having to use a component. Or some kind of improvements into writing styles. With a compiler you can do anything you want and I think Svelte has been a bit timid, maybe to not scare people away.

    For example Imba[1] also bet on a compiler-based approach (years before Svelte existed) and created their own language/framework/compiler. They have come up with amazing solutions to many problems. It's a shame they bet on Ruby aesthetics though and also that they aren't investing into marketing/docs.

    Of course, one might argue that using a compiler is a bad idea for a number of reasons. And yeah of course there are objective issues to any approach, but you have to pick your poison. All in all, Svelte has made me tremendously productive compared to using other solutions for years (React, Vue, Mithril, Inferno, etc).

    I will say though that I would rather use a solution that doesn't have any reactivity at all. Mithril and Imba have this concept of just "redrawing the whole thing" like a game GUI without having to worry about reactivity. Cognitively speaking, no reactivity is the best mental model IMO. With any reactive solution, it's very easy to fall into complex reactive dependencies which can be hard to track. The author of Imba has a video from 2018 where he talks about this[2].

    [1] https://imba.io/

    [2] https://www.youtube.com/watch?v=jwoApTLvRdQ

  • The Io Language
    8 projects | news.ycombinator.com | 18 Mar 2023
    A code snippet showing a simple program right on the home page and "selling" whatever features makes it special would go a long way. It's quite off-putting to have to delve deep into a guide in order to get a feel for a language.

    Some examples done right:

    https://lfe.io

    https://elixir-lang.org

    https://imba.io

    https://ocaml.org

  • Why do so many CS grads seem to look down on webdev?
    2 projects | /r/webdev | 10 Jan 2023
    At the same time, my heart is kind of in the web stuff and I find it a lot more exciting personally so it's hard for me to leave. You can do so much more with web tech and all the new ideas Tcoming from it and the pace it's developing is really . I just don't understand why React is becoming the standard when it's a complete nightmare compared to where we should be. I mean, this is literally insane, especially when things like Svelte exist - or even better, Imba. The day Imba becomes the standard is the day I love web dev again.
  • Ask HN: What are your favorite books/courses of 2022? Why?
    2 projects | news.ycombinator.com | 20 Nov 2022
    Love Imba[0] as well which is the programming language Scrimba is written in. Truly revolutionary.

    [0] https://imba.io/

What are some alternatives?

When comparing svelte-preprocess and imba you can also consider the following projects:

vite - Next generation frontend tooling. It's fast!

style-resources - Style Resources for Nuxt 3

postcss-preset-env - Convert modern CSS into something browsers understand

sveltekit-blog-template - A SvelteKit blog template

svelte-vite-jest-template - Svelte template based on Vite's Svelte template, but includes unit testing setup (Jest and Svelte Testing Library).

svelte-i18n - Internationalization library for Svelte

postcss-nested - PostCSS plugin to unwrap nested rules like how Sass does it.

js-framework-benchmark - A comparison of the performance of a few popular javascript frameworks

svelte-kit-cookie-session - ⚒️ Encrypted "stateless" cookie sessions for SvelteKit

houdini - The disappearing GraphQL client

React - The library for web and native user interfaces.

Tailwind CSS - A utility-first CSS framework for rapid UI development.