Skip to content

Commit

Permalink
chore: types
Browse files Browse the repository at this point in the history
  • Loading branch information
valentine195 committed Apr 19, 2024
1 parent 324f366 commit c74f4bb
Show file tree
Hide file tree
Showing 8 changed files with 409 additions and 1,333 deletions.
16 changes: 3 additions & 13 deletions esbuild.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ import sveltePreprocess from "svelte-preprocess";
import process from "process";
import builtins from "builtin-modules";
import { config } from "dotenv";
import { build } from "tsup";

config();

Expand All @@ -16,8 +15,6 @@ if you want to view the source, please visit the github repository of this modul

const prod = process.argv[2] === "production";



const parameters = {
banner: {
js: banner
Expand Down Expand Up @@ -56,13 +53,13 @@ const parameters = {
target: "es2020",
logLevel: "info",
sourcemap: prod ? false : "inline",
minifyWhitespace: true,
minifyWhitespace: prod,
/** Documentation: https://esbuild.github.io/api/#minify */
minifyIdentifiers: false,
/** Documentation: https://esbuild.github.io/api/#minify */
minifySyntax: true,
minifySyntax: prod,
treeShaking: true,
outdir: "./build",
outdir: "./dist",
plugins: [
sveltePlugin({
compilerOptions: { css: "injected" },
Expand All @@ -88,12 +85,5 @@ if (prod) {
});
} else {
let ctx = await esbuild.context(parameters);

await build({
entry: ["./src/main.ts"],
dts: {
only: true
}
});
await ctx.watch();
}
Loading

0 comments on commit c74f4bb

Please sign in to comment.