Skip to content

Commit 3a41d68

Browse files
committed
Add optimizeImports to svelte.config.js
1 parent 130412a commit 3a41d68

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

fotobox/frontend-app/svelte.config.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,12 @@
11
import adapter from '@sveltejs/adapter-node';
2+
import { optimizeImports } from 'carbon-preprocess-svelte';
23

34
/** @type {import('@sveltejs/kit').Config} */
45
const config = {
6+
preprocess: [
7+
// Optimize Carbon imports for faster development and build times.
8+
optimizeImports()
9+
],
510
kit: {
611
// adapter-auto only supports some environments, see https://kit.svelte.dev/docs/adapter-auto for a list.
712
// If your environment is not supported, or you settled on a specific environment, switch out the adapter.

0 commit comments

Comments
 (0)