Skip to content

Commit

Permalink
feat: dev builds init
Browse files Browse the repository at this point in the history
  • Loading branch information
pylixonly committed May 18, 2024
1 parent a7e7566 commit bc80f43
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
5 changes: 4 additions & 1 deletion build.mjs
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
/* eslint-disable no-restricted-syntax */
// eslint-disable-next-line simple-import-sort/imports
import swc from "@swc/core";
import { execSync } from "child_process";
Expand Down Expand Up @@ -32,6 +33,9 @@ try {
footer: {
js: "//# sourceURL=bunny"
},
define: {
__DEV__: String(!isRelease)
},
loader: { ".png": "dataurl" },
legalComments: "none",
plugins: [
Expand Down Expand Up @@ -65,7 +69,6 @@ try {
});

build.onEnd(result => {
const { outfile } = build.initialOptions;
console.log(`Built with ${result.errors?.length} errors!`);
});
}
Expand Down
3 changes: 2 additions & 1 deletion src/core/ui/settings/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ export const PyoncordIcon = _PyoncordIcon as string;

export default function initSettings() {
registerSection({
name: "Bunny",
name: "Bunny" + (__DEV__ ? " (DEV)" : ""),
items: [
{
key: "BUNNY",
Expand Down Expand Up @@ -56,6 +56,7 @@ export default function initSettings() {
});

// Compat for plugins which injects into the settings
// Flaw: in the old UI, this will be displayed anyway with no items
registerSection({
name: "Vendetta",
items: []
Expand Down

0 comments on commit bc80f43

Please sign in to comment.