Skip to content

Commit

Permalink
updeps
Browse files Browse the repository at this point in the history
  • Loading branch information
Valexr committed Jan 18, 2025
1 parent 1776373 commit cf19a9f
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 6 deletions.
8 changes: 6 additions & 2 deletions esbuild.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,16 +5,19 @@ import rm from './env/rm.js';
import log from './env/log.js';
import meta from './env/meta.js';
import proxy from './env/proxy.js';
import pkg from './package.json' with {type: 'json'};

const DEV = process.argv.includes('--dev');
const SPA = process.argv.includes('--spa');

const svelteOptions = {
compilerOptions: {
dev: DEV,
css: 'external',
immutable: true,
cssHash: ({ css, filename, name, hash }) => {
return `${pkg.name}-${hash(css)}`;
},
runes: true,
immutable: true,
modernAst: true
},
preprocess: [
Expand All @@ -39,6 +42,7 @@ const buildOptions = {
logLevel: 'info',
metafile: !DEV,
mainFields: ['svelte', 'module', 'main'],
conditions: ['production', 'development'],
};

await rm(['public/build']);
Expand Down
8 changes: 4 additions & 4 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": "^22.10.0",
"esbuild": "^0.24.0",
"@types/node": "^22.10.7",
"esbuild": "^0.24.2",
"esbuild-svelte": "^0.9.0",
"luxon": "^3.5.0",
"svelte": "^5.2.9",
"svelte": "^5.19.0",
"svelte-preprocess": "^6.0.3",
"typescript": "^5.7.2"
"typescript": "^5.7.3"
}
}

0 comments on commit cf19a9f

Please sign in to comment.