aboutsummaryrefslogtreecommitdiff
path: root/web/pw-server/svelte.config.js
diff options
context:
space:
mode:
authorIlion Beyst <ilion.beyst@gmail.com>2021-12-31 11:38:06 +0100
committerIlion Beyst <ilion.beyst@gmail.com>2021-12-31 11:38:06 +0100
commit8d3b8fd8aa9603f5377f1b37963190ac2c01e9dd (patch)
tree7f4867f47702eedbb94e9723597f301e36aa0ea8 /web/pw-server/svelte.config.js
parent74d0189d37087188de72a70aadb0e3a22cad7917 (diff)
downloadplanetwars.dev-8d3b8fd8aa9603f5377f1b37963190ac2c01e9dd.tar.xz
planetwars.dev-8d3b8fd8aa9603f5377f1b37963190ac2c01e9dd.zip
npm run format
Diffstat (limited to 'web/pw-server/svelte.config.js')
-rw-r--r--web/pw-server/svelte.config.js77
1 files changed, 37 insertions, 40 deletions
diff --git a/web/pw-server/svelte.config.js b/web/pw-server/svelte.config.js
index 14e6a05..0c0c40c 100644
--- a/web/pw-server/svelte.config.js
+++ b/web/pw-server/svelte.config.js
@@ -1,49 +1,46 @@
-import adapter from '@sveltejs/adapter-auto';
-import preprocess from 'svelte-preprocess';
+import adapter from "@sveltejs/adapter-auto";
+import preprocess from "svelte-preprocess";
// import { svelte } from '@sveltejs/vite-plugin-svelte'
-import { viteCommonjs } from '@originjs/vite-plugin-commonjs'
-import wasmPack from 'vite-plugin-wasm-pack';
-
+import { viteCommonjs } from "@originjs/vite-plugin-commonjs";
+import wasmPack from "vite-plugin-wasm-pack";
/** @type {import('@sveltejs/kit').Config} */
const config = {
- // Consult https://github.com/sveltejs/svelte-preprocess
- // for more information about preprocessors
- preprocess: preprocess(),
-
- kit: {
- adapter: adapter(),
+ // Consult https://github.com/sveltejs/svelte-preprocess
+ // for more information about preprocessors
+ preprocess: preprocess(),
- // hydrate the <div id="svelte"> element in src/app.html
- target: '#svelte',
- ssr: false,
- vite: {
- plugins: [
- // svelte(),
- // wasmPack([], ["planetwars-rs"]),
- viteCommonjs({
- transformMixedEsModules: true,
- }),
- ],
- build: {
- commonjsOptions: {
- transformMixedEsModules: true,
- },
- },
- server: {
- proxy: {
- "/api/": "http://localhost:9000",
- "/ws": "ws://localhost:9000/ws",
- },
- fs: {
- // Allow serving files from one level up to the project root
- allow: ['..']
- }
- },
- }
-
- },
+ kit: {
+ adapter: adapter(),
+ // hydrate the <div id="svelte"> element in src/app.html
+ target: "#svelte",
+ ssr: false,
+ vite: {
+ plugins: [
+ // svelte(),
+ // wasmPack([], ["planetwars-rs"]),
+ viteCommonjs({
+ transformMixedEsModules: true,
+ }),
+ ],
+ build: {
+ commonjsOptions: {
+ transformMixedEsModules: true,
+ },
+ },
+ server: {
+ proxy: {
+ "/api/": "http://localhost:9000",
+ "/ws": "ws://localhost:9000/ws",
+ },
+ fs: {
+ // Allow serving files from one level up to the project root
+ allow: [".."],
+ },
+ },
+ },
+ },
};
export default config;