From 10a2adb57e22ca71b00564fea73ffa81baa1de0b Mon Sep 17 00:00:00 2001 From: Mawoka Date: Sat, 9 Jul 2022 12:26:42 +0200 Subject: [PATCH] :arrow_up: Updated sveltekit to latest, adapter-node was the problem --- frontend/package.json | 13 ++++++----- frontend/pnpm-lock.yaml | 22 +++++++++---------- frontend/svelte.config.js | 4 +++- .../{vite.config.js.new => vite.config.js} | 3 +-- 4 files changed, 21 insertions(+), 21 deletions(-) rename frontend/{vite.config.js.new => vite.config.js} (69%) diff --git a/frontend/package.json b/frontend/package.json index 3cf6762..46e70b7 100644 --- a/frontend/package.json +++ b/frontend/package.json @@ -2,10 +2,10 @@ "name": "frontend", "version": "0.0.1", "scripts": { - "dev": "svelte-kit dev", - "build": "NODE_ENV=production svelte-kit build", - "package": "svelte-kit package", - "preview": "svelte-kit preview", + "dev": "vite dev", + "build": "NODE_ENV=production vite build", + "package": "vite package", + "preview": "vite preview", "check": "svelte-check --tsconfig ./tsconfig.json", "check:watch": "svelte-check --tsconfig ./tsconfig.json --watch", "lint": "prettier --ignore-path .gitignore --check --plugin-search-dir=. . '!src/lib/i18n/locales/*.json' && eslint --ignore-path .gitignore .", @@ -21,8 +21,8 @@ "@sentry/browser": "^7.5.1", "@sentry/tracing": "^7.5.1", "@sveltejs/adapter-auto": "next", - "@sveltejs/adapter-node": "^1.0.0-next.78", - "@sveltejs/kit": "1.0.0-next.356", + "@sveltejs/adapter-node": "1.0.0-next.78", + "@sveltejs/kit": "next", "@tailwindcss/typography": "^0.5.3", "@types/cookie": "^0.5.1", "@types/js-cookie": "^3.0.2", @@ -70,6 +70,7 @@ "typescript": "~4.7.4", "ua-parser-js": "^1.0.2", "vite-plugin-iso-import": "^0.1.3", + "vite": "^2.9.14", "yup": "^0.32.11" }, "type": "module", diff --git a/frontend/pnpm-lock.yaml b/frontend/pnpm-lock.yaml index aad1e4c..c0224b4 100644 --- a/frontend/pnpm-lock.yaml +++ b/frontend/pnpm-lock.yaml @@ -8,8 +8,8 @@ specifiers: '@sentry/browser': ^7.5.1 '@sentry/tracing': ^7.5.1 '@sveltejs/adapter-auto': next - '@sveltejs/adapter-node': ^1.0.0-next.78 - '@sveltejs/kit': 1.0.0-next.356 + '@sveltejs/adapter-node': 1.0.0-next.78 + '@sveltejs/kit': next '@tailwindcss/typography': ^0.5.3 '@types/cookie': ^0.5.1 '@types/js-cookie': ^3.0.2 @@ -72,8 +72,8 @@ devDependencies: '@sentry/browser': 7.5.1 '@sentry/tracing': 7.5.1 '@sveltejs/adapter-auto': 1.0.0-next.55 - '@sveltejs/adapter-node': 1.0.0-next.79 - '@sveltejs/kit': 1.0.0-next.356_sass@1.53.0+svelte@3.49.0 + '@sveltejs/adapter-node': 1.0.0-next.78 + '@sveltejs/kit': 1.0.0-next.367_svelte@3.49.0+vite@2.9.14 '@tailwindcss/typography': 0.5.3_tailwindcss@3.1.5 '@types/cookie': 0.5.1 '@types/js-cookie': 3.0.2 @@ -525,10 +525,10 @@ packages: tiny-glob: 0.2.9 dev: true - /@sveltejs/adapter-node/1.0.0-next.79: + /@sveltejs/adapter-node/1.0.0-next.78: resolution: { - integrity: sha512-cPD28X6qoI53rZzGhaBmE+88vgv4oc/S/jJ1t+rUMpz4d/X2Wo3zuShXpWDhqj8Vix8SbggV0JRCtu4a0hoYQg== + integrity: sha512-TXB5Ii0z/7o1B05p/YLsS4t+JUHFHWBzFv1U16TKvM3HMbMUJIx+AhpM2WJfDX8HtAyfd1m9OawGoUB+1ed24A== } dependencies: tiny-glob: 0.2.9 @@ -547,15 +547,16 @@ packages: - supports-color dev: true - /@sveltejs/kit/1.0.0-next.356_sass@1.53.0+svelte@3.49.0: + /@sveltejs/kit/1.0.0-next.367_svelte@3.49.0+vite@2.9.14: resolution: { - integrity: sha512-gUQADfjWDm2xNJ1PaBOllZsbZR0gNuYG1uiAU8h74/62kw2rC+6F8djYKhhaFdDIQLEHdwuc/6RuTFqbn+pFKQ== + integrity: sha512-glilWol6iJEf8esQpH0HOzdI4n/xgZtoLa9U9sbg+BZelQXFRRglaGyw+ahjEreBH5MH3/bpIYAPPObQN8Pgbg== } - engines: { node: '>=16.7' } + engines: { node: '>=16.9' } hasBin: true peerDependencies: svelte: ^3.44.0 + vite: ^2.9.10 dependencies: '@sveltejs/vite-plugin-svelte': 1.0.0-next.49_svelte@3.49.0+vite@2.9.14 chokidar: 3.5.3 @@ -564,9 +565,6 @@ packages: vite: 2.9.14_sass@1.53.0 transitivePeerDependencies: - diff-match-patch - - less - - sass - - stylus - supports-color dev: true diff --git a/frontend/svelte.config.js b/frontend/svelte.config.js index a3cd770..6087886 100644 --- a/frontend/svelte.config.js +++ b/frontend/svelte.config.js @@ -21,8 +21,9 @@ const config = { adapter: adapter({ out: 'build', precompress: true - }), + }) // +++ SOON OBSOLETE +++ + /* vite: { optimizeDeps: { include: ['swiper'] @@ -31,6 +32,7 @@ const config = { sourcemap: true } } + */ // --- SOON OBSOLETE --- } }; diff --git a/frontend/vite.config.js.new b/frontend/vite.config.js similarity index 69% rename from frontend/vite.config.js.new rename to frontend/vite.config.js index 3b7e0a0..38f6b6f 100644 --- a/frontend/vite.config.js.new +++ b/frontend/vite.config.js @@ -1,9 +1,8 @@ import { sveltekit } from '@sveltejs/kit/vite'; -import { isoImport } from 'vite-plugin-iso-import'; /** @type {import('vite').UserConfig} */ const config = { - plugins: [sveltekit(), isoImport()], + plugins: [sveltekit()], optimizeDeps: { include: ['swiper'] },