Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 31b824a

Browse files
committedApr 19, 2024
Svelte: alias "$" to ./src
1 parent 072e420 commit 31b824a

File tree

1 file changed

+9
-7
lines changed

1 file changed

+9
-7
lines changed
 

‎svelte.config.js

+9-7
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
import adapter from '@sveltejs/adapter-auto';
2-
import { vitePreprocess } from '@sveltejs/vite-plugin-svelte';
1+
import adapter from '@sveltejs/adapter-auto'
2+
import { vitePreprocess } from '@sveltejs/vite-plugin-svelte'
33

44
/** @type {import('@sveltejs/kit').Config} */
5-
const config = {
5+
export default {
66
// Consult https://kit.svelte.dev/docs/integrations#preprocessors
77
// for more information about preprocessors
88
preprocess: vitePreprocess(),
@@ -11,8 +11,10 @@ const config = {
1111
// adapter-auto only supports some environments, see https://kit.svelte.dev/docs/adapter-auto for a list.
1212
// If your environment is not supported or you settled on a specific environment, switch out the adapter.
1313
// See https://kit.svelte.dev/docs/adapters for more information about adapters.
14-
adapter: adapter()
15-
}
16-
};
14+
adapter: adapter(),
1715

18-
export default config;
16+
alias: {
17+
'$': './src',
18+
},
19+
},
20+
}

0 commit comments

Comments
 (0)
Please sign in to comment.