Skip to content

Commit

Permalink
updeps
Browse files Browse the repository at this point in the history
  • Loading branch information
Valexr committed Aug 12, 2024
1 parent 2285d41 commit 3a0ed53
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
14 changes: 7 additions & 7 deletions esbuild.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { build, context } from 'esbuild';
import svelte from 'esbuild-svelte';
import preprocess from 'svelte-preprocess';
import { sveltePreprocess } from 'svelte-preprocess';
import rm from './env/rm.js';
import log from './env/log.js';
import meta from './env/meta.js';
Expand All @@ -13,14 +13,14 @@ const svelteOptions = {
compilerOptions: {
dev: DEV,
css: 'external',
immutable: true
immutable: true,
},
preprocess: [
preprocess({
sveltePreprocess({
sourceMap: DEV,
typescript: true,
}),
]
],
};

const buildOptions = {
Expand All @@ -33,7 +33,7 @@ const buildOptions = {
loader: { '.svg': 'text' },
plugins: [svelte(svelteOptions), log],
inject: DEV ? ['./env/lr.js'] : [],
legalComments: "none",
legalComments: 'none',
logLevel: 'info',
metafile: !DEV,
mainFields: ['svelte', 'module', 'main'],
Expand All @@ -50,7 +50,7 @@ if (DEV) {
SPA && proxy().listen(8080);

process.on('SIGTERM', ctx.dispose);
process.on("exit", ctx.dispose);
process.on('exit', ctx.dispose);
} else {
await meta(await build(buildOptions));
}
}
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,12 @@
},
"devDependencies": {
"@types/luxon": "^3.4.2",
"@types/node": "^20.14.10",
"@types/node": "^22.2.0",
"esbuild": "^0.23.0",
"esbuild-svelte": "^0.8.1",
"luxon": "^3.4.4",
"luxon": "^3.5.0",
"svelte": "^4.2.18",
"svelte-preprocess": "^6.0.2",
"typescript": "^5.5.3"
"typescript": "^5.5.4"
}
}

0 comments on commit 3a0ed53

Please sign in to comment.