Skip to content

Commit

Permalink
stupid fucking esm/cjs fucking import.meta package.json npm ecosystem bs
Browse files Browse the repository at this point in the history
  • Loading branch information
Jazcash committed Apr 15, 2024
1 parent 9b9b391 commit abaaa75
Show file tree
Hide file tree
Showing 22 changed files with 12,495 additions and 10,554 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -41,4 +41,5 @@ thumbs.db
.electron-vendors.cache.json
/tsconfig.node.tsbuildinfo
/tsconfig.web.tsbuildinfo
debug.log
debug.log
Release
18 changes: 10 additions & 8 deletions electron.vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ export default defineConfig({
"@": path.join(__dirname, "src/renderer"),
$: path.join(__dirname, "src/common"),
},
preserveSymlinks: true,
},
build: {
assetsDir: ".",
Expand All @@ -46,9 +47,10 @@ export default defineConfig({
esbuildOptions: {
target: "esnext",
},
exclude: [
//"tachyon-client", // 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 @@ -67,14 +69,14 @@ export default defineConfig({
vue(),
renderer({
resolve: {
"better-sqlite3": {
type: "esm",
},
// "better-sqlite3": {
// type: "esm",
// },
ws: {
type: "esm",
},
// "tachyon-client": {
// type: "esm",
// "tachyon-protocol": {
// type: "cjs",
// },
},
}),
Expand Down
Loading

0 comments on commit abaaa75

Please sign in to comment.