Svelte Typescript Rollup screenshot

Svelte Typescript Rollup

Author Avatar Theme by Dafn
Updated: 22 Jul 2020
78 Stars

Svelte + Typescript + Rollup

Categories

Overview

The content discusses the official support for Typescript in Svelte and provides a minimal boilerplate example of how to use Svelte with Typescript using Rollup. The article mentions that due to this new support, the associated repository has been archived.

Features

  • Svelte + Typescript + Rollup: Allows developers to use Typescript with Svelte using the Rollup bundler.
  • Minimal boilerplate example: Provides a simple and concise starting point for using Svelte with Typescript.
  • SCSS support: Includes support for SCSS, allowing developers to use the popular CSS preprocessor in their Svelte + Typescript projects.

Installation

To set up the Svelte with Typescript project using Rollup, follow these steps:

  1. Install the required packages:
npm install
  1. Start the development server:
npm run dev
  1. Build the project for production:
npm run build

Summary

This article introduces the official support for Typescript in Svelte and provides a minimal boilerplate example using Rollup. It outlines the key features of Svelte with Typescript and includes SCSS support. The installation guide helps developers set up the project and start developing with Svelte and Typescript.