esbuild-plugin-svelte Svelte Themes

Esbuild Plugin Svelte

Compile Svelte components with esbuild

esbuild-plugin-svelte

Compile Svelte components with esbuild

Usage

npm install --save-dev @intrnl/esbuild-plugin-svelte
# pnpm install --save-dev @intrnl/esbuild-plugin-svelte
# yarn add --dev @intrnl/esbuild-plugin-svelte
import esbuild from 'esbuild';
import { svelte } from '@intrnl/esbuild-plugin-svelte';

esbuild.build({
  bundle: true,
  // ...
  plugins: [
    svelte({
      // Enable built-in TypeScript preprocessing, defaults to true
      typescript: true,
      // Svelte preprocessors, make sure it is an array
      preprocess: [],
      // Svelte compiler options
      compilerOptions: {},
    }),
  ],
});

Top categories

svelte logo

Need a Svelte website built?

Hire a professional Svelte developer today.
Loading Svelte Themes