Skip to content

Commit

Permalink
This plugin was a scam
Browse files Browse the repository at this point in the history
  • Loading branch information
alexkar598 committed Jun 23, 2023
1 parent 21fba8e commit c0f8f49
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 52 deletions.
42 changes: 0 additions & 42 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@
"terser-webpack-plugin": "^5.3.7",
"typescript": "^5.0.4",
"vite-plugin-checker": "^0.5.6",
"vite-plugin-conditional-compiler": "^0.1.1",
"vue-tsc": "^1.2.0"
},
"dependencies": {
Expand Down
9 changes: 2 additions & 7 deletions src/vm/worker.ts
Original file line number Diff line number Diff line change
@@ -1,12 +1,7 @@
import wasmUrl from "../lib/v86.wasm?url";
//import isoUrl from "val-loader!../../fetchIso.js?raw";

let prodIsoUrl: string | undefined;
// #v-ifdef DEV
import isoUrl from "../../../buildroot/output/images/rootfs.iso9660?url";
// #v-else
prodIsoUrl = import.meta.env.VITE_ISO_URL;
// #v-endif
let overrideIsoUrl: string | undefined = import.meta.env.VITE_ISO_URL;

self.importScripts = () => {};

Expand Down Expand Up @@ -133,7 +128,7 @@ const emulator = new V86Starter({
url: "https://raw.githubusercontent.com/copy/v86/master/bios/vgabios.bin",
},
cdrom: {
url: prodIsoUrl ?? isoUrl,
url: overrideIsoUrl ?? isoUrl,
},
hda: null,
hdb: null,
Expand Down
2 changes: 0 additions & 2 deletions vite.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,11 @@
import path from "path";
import vue from "@vitejs/plugin-vue";
import checker from "vite-plugin-checker";
import ConditionalCompile from "vite-plugin-conditional-compiler";

/** @type {import("vite").UserConfig} */
const config = {
root: "./src",
plugins: [
ConditionalCompile(),
vue(),
checker({
typescript: true,
Expand Down

0 comments on commit c0f8f49

Please sign in to comment.