Skip to content

Commit

Permalink
Build in production mode when necessary
Browse files Browse the repository at this point in the history
  • Loading branch information
saulshanabrook committed Sep 19, 2024
1 parent 2fe8645 commit eabb861
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "egraph-visualizer",
"version": "0.1.8",
"version": "0.1.9",
"repository": {
"type": "git",
"url": "https://github.com/saulshanabrook/egraph-visualizer.git"
Expand Down
1 change: 0 additions & 1 deletion src/Visualizer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -337,7 +337,6 @@ function toELKNode(
);
// Use interactive layout if more than half the classes already have positions as a heuristic
if ((overlappingClasses.false || []).length > (overlappingClasses.true || []).length) {
console.log("not using interactive layout");
return { elkNode: elkRoot, colors };
}
// We have some children that were already layed out. So let's update all layout options to be interactive
Expand Down
4 changes: 3 additions & 1 deletion vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@ export default defineConfig({
},

define: {
"process.env": {},
"process.env": {
NODE_ENV: JSON.stringify(process.env.NODE_ENV),
},
},
});

0 comments on commit eabb861

Please sign in to comment.