diff --git a/esbuild.js b/esbuild.js index 6d13de4..0c43d17 100644 --- a/esbuild.js +++ b/esbuild.js @@ -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'; @@ -13,14 +13,14 @@ const svelteOptions = { compilerOptions: { dev: DEV, css: 'external', - immutable: true + immutable: true, }, preprocess: [ - preprocess({ + sveltePreprocess({ sourceMap: DEV, typescript: true, }), - ] + ], }; const buildOptions = { @@ -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'], @@ -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)); -} \ No newline at end of file +} diff --git a/package.json b/package.json index 7baa35f..2e37c6d 100644 --- a/package.json +++ b/package.json @@ -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" } } \ No newline at end of file