Skip to content

Commit e00c5ce

Browse files
committed
Start of #48
1 parent 72b7eb8 commit e00c5ce

13 files changed

+764
-196
lines changed

esbuild.config.mjs

Lines changed: 13 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,11 @@
1-
import esbuild from "esbuild";
2-
import process from "process";
3-
import builtins from 'builtin-modules'
1+
import esbuild from 'esbuild';
2+
import process from 'process';
3+
import builtins from 'builtin-modules';
4+
import esbuildSvelte from 'esbuild-svelte';
5+
import sveltePreprocess from 'svelte-preprocess';
46

57
const banner =
6-
`/*
8+
`/*
79
THIS IS A GENERATED/BUNDLED FILE BY ESBUILD
810
if you want to view the source, please visit the github repository of this plugin
911
*/
@@ -45,8 +47,14 @@ esbuild.build({
4547
format: 'cjs',
4648
watch: !prod,
4749
target: 'es2016',
48-
logLevel: "info",
50+
logLevel: 'info',
4951
sourcemap: prod ? false : 'inline',
5052
treeShaking: true,
5153
outfile: 'main.js',
54+
plugins: [
55+
esbuildSvelte({
56+
compilerOptions: { css: true },
57+
preprocess: sveltePreprocess(),
58+
}),
59+
],
5260
}).catch(() => process.exit(1));

0 commit comments

Comments
 (0)