Skip to content

Commit

Permalink
Start of #48
Browse files Browse the repository at this point in the history
  • Loading branch information
mProjectsCode committed Sep 23, 2022
1 parent 72b7eb8 commit e00c5ce
Show file tree
Hide file tree
Showing 13 changed files with 764 additions and 196 deletions.
18 changes: 13 additions & 5 deletions esbuild.config.mjs
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
import esbuild from "esbuild";
import process from "process";
import builtins from 'builtin-modules'
import esbuild from 'esbuild';
import process from 'process';
import builtins from 'builtin-modules';
import esbuildSvelte from 'esbuild-svelte';
import sveltePreprocess from 'svelte-preprocess';

const banner =
`/*
`/*
THIS IS A GENERATED/BUNDLED FILE BY ESBUILD
if you want to view the source, please visit the github repository of this plugin
*/
Expand Down Expand Up @@ -45,8 +47,14 @@ esbuild.build({
format: 'cjs',
watch: !prod,
target: 'es2016',
logLevel: "info",
logLevel: 'info',
sourcemap: prod ? false : 'inline',
treeShaking: true,
outfile: 'main.js',
plugins: [
esbuildSvelte({
compilerOptions: { css: true },
preprocess: sveltePreprocess(),
}),
],
}).catch(() => process.exit(1));
Loading

0 comments on commit e00c5ce

Please sign in to comment.