All Projects → codechips → svelte-typescript-setups

codechips / svelte-typescript-setups

Licence: other
Examples and tests of different bundler setups for Svelte with Typescript and PostCSS (Tailwind)

Programming Languages

javascript
184084 projects - #8 most used programming language
Svelte
593 projects
typescript
32286 projects
HTML
75241 projects
CSS
56736 projects
shell
77523 projects

Projects that are alternatives of or similar to svelte-typescript-setups

svelte-tailwind-snowpack
TailwindCSS with Svelte and Snowpack v3
Stars: ✭ 100 (+100%)
Mutual labels:  svelte, snowpack
Svelte-Tailwind
Setting up Tailwind CSS in a Svelte project
Stars: ✭ 137 (+174%)
Mutual labels:  svelte, vite
vite-plugin-webfont-dl
⚡ Webfont Download Vite Plugin - Make your Vite site load faster
Stars: ✭ 69 (+38%)
Mutual labels:  svelte, vite
simple-todo
A browser extension that replaces the new tab page with a simple todo list
Stars: ✭ 56 (+12%)
Mutual labels:  svelte, snowpack
vscode
Builder.io for VSCode - turn designs into code!
Stars: ✭ 139 (+178%)
Mutual labels:  svelte
svelte-leaflet
Svelte component for leaflet.
Stars: ✭ 37 (-26%)
Mutual labels:  svelte
visualisation-lab
An experimental visualisation workbench built using Svelte
Stars: ✭ 17 (-66%)
Mutual labels:  svelte
BeatHub
Small, simple, and fast custom beatmap browser & downloader built with Svelte
Stars: ✭ 13 (-74%)
Mutual labels:  svelte
aria-vue
Testing tools for Vue components
Stars: ✭ 21 (-58%)
Mutual labels:  vite
svelte-writable-derived
Two-way data-transforming stores for Svelte
Stars: ✭ 65 (+30%)
Mutual labels:  svelte
sveltekit-blog
Sveltekit blog starter project created with sveltekit, typescript, tailwindcss, postcss, husky, and storybook. The project has the structure set up for the scaleable web application.
Stars: ✭ 100 (+100%)
Mutual labels:  svelte
curl2ab
Convert cURL command line to ab (apache bench)
Stars: ✭ 22 (-56%)
Mutual labels:  svelte
stimulus-content-loader
A Stimulus controller to asynchronously load HTML from an url.
Stars: ✭ 39 (-22%)
Mutual labels:  snowpack
fastify-vite
This plugin lets you load a Vite client application and set it up for Server-Side Rendering (SSR) with Fastify.
Stars: ✭ 497 (+894%)
Mutual labels:  svelte
ctx-core
A composable monorepo web-service/front-end toolkit
Stars: ✭ 25 (-50%)
Mutual labels:  svelte
json-to-go
将json生成go的数据结构。Online tool that convert JSON to Go.
Stars: ✭ 16 (-68%)
Mutual labels:  vite
svelte-portal
Svelte component for rendering outside the DOM of parent component
Stars: ✭ 261 (+422%)
Mutual labels:  svelte
sdk-for-svelte
Appwrite SDK for Svelte 🧡 ⚠️ Warning - this SDK was designed to support Appwrite 0.9 and is not compatible with the latest Appwrite versions. We are planing to refactor it as part of the SDK Generator for better support and maintenance.
Stars: ✭ 69 (+38%)
Mutual labels:  svelte
elucidator-blog-starter
Opinionated Vue 3 + Vite + Typescript minimal blog starter ⚔
Stars: ✭ 28 (-44%)
Mutual labels:  vite
sveltekit-blog-template
A SvelteKit blog template
Stars: ✭ 79 (+58%)
Mutual labels:  svelte

svelte-typescript-setups

Examples of different bundler setups for Svelte only, not Sapper.

Motivation

I am on the quest to find the best bundler for Svelte. Why? Because development time is expensive. When writing code I want a tight feedback loop, easy setup and configuration, flexibility and small and efficient bundle size.

My Requirements

  • It must be fast
  • It must support Typescript
  • It must support PostCSS
  • It must produce small and efficient bundles
  • It must produce correct sourcemaps for debugging
  • It should support HMR (Hot Module Replacement)

Test App

For the purpose of testing I created a simple Svelte app. Its functionality is simple. You press a button and it fetches a random Kanye West tweet from Kanye as a Service.

Kanye Says app screenshot

The app might be simple, maybe even naïve, but it has a few interesting parts.

  • Svelte components in Typescript. I want to see if transpiling and type checking works correctly for TS.
  • External Svelte library. Not all bundlers support libraries written in Svelte efficiently.
  • External library dependency. I want to see if Vite supports tree shaking when bundling for production.
  • Extenal Assets. It should be possible to import SVG, PNG, JSON and other external assets in our code.
  • PostCSS with TailwindCSS. A good bundler should make it easy to work with SASS and PostCSS.
  • Business components in Typescript. Typescript is here to stay. A good bundler should support it out-of-the-box.

Bundlers

There is more!

For more interesting stuff like this follow me on Twitter or check out my blog at codechips.me.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].