Skip to content

Commit

Permalink
wip from wherever i left it
Browse files Browse the repository at this point in the history
  • Loading branch information
Jazcash committed Aug 29, 2024
1 parent a3f39b3 commit 5b04888
Show file tree
Hide file tree
Showing 22 changed files with 9,648 additions and 22,324 deletions.
1 change: 1 addition & 0 deletions .nvmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
22
20 changes: 12 additions & 8 deletions electron.vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ import vue from "@vitejs/plugin-vue";
import { defineConfig, externalizeDepsPlugin } from "electron-vite";
import path from "path";
import VueRouter from "unplugin-vue-router/vite";
import commonjs from "vite-plugin-commonjs";
import renderer from "vite-plugin-electron-renderer";
import svgLoader from "vite-svg-loader";

export default defineConfig({
main: {
Expand Down Expand Up @@ -48,7 +48,10 @@ export default defineConfig({
esbuildOptions: {
target: "esnext",
},
exclude: ["tachyon-protocol"], // only when using npm link?
exclude: [
"tachyon-client", // only when using npm link?
"tachyon-protocol", // only when using npm link?
],
},
css: {
modules: false,
Expand All @@ -65,6 +68,7 @@ export default defineConfig({
importMode: "sync",
}),
vue(),
svgLoader(),
renderer({
resolve: {
// "better-sqlite3": {
Expand All @@ -73,12 +77,12 @@ export default defineConfig({
ws: {
type: "esm",
},
},
}),
commonjs({
filter: (id) => {
const fileRegex = /precompiled.*validations\.js$/;
return fileRegex.test(id);
"tachyon-client": {
type: "esm",
},
"@badgateway/oauth2-client": {
type: "esm",
},
},
}),
],
Expand Down
Loading

0 comments on commit 5b04888

Please sign in to comment.