Skip to content

Commit

Permalink
remove vite plugin virtual html
Browse files Browse the repository at this point in the history
  • Loading branch information
tnrich committed Apr 3, 2024
1 parent 517dd9f commit 553c8c0
Show file tree
Hide file tree
Showing 7 changed files with 16 additions and 21 deletions.
1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,6 @@
"vite-plugin-eslint": "^1.8.1",
"vite-plugin-libcss": "^1.1.1",
"vite-plugin-static-copy": "^0.17.0",
"vite-plugin-virtual-html": "^1.1.10",
"vite-tsconfig-paths": "^4.2.1",
"vitest": "^0.34.6"
},
Expand Down
2 changes: 1 addition & 1 deletion packages/bio-parsers/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@teselagen/bio-parsers",
"version": "0.4.11",
"version": "0.4.12",
"type": "commonjs",
"dependencies": {
"@gmod/gff": "^1.2.1",
Expand Down
11 changes: 11 additions & 0 deletions packages/bounce-loader/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<title>bounce-loader demo</title>
<script src="./demo/index.js" type="module"></script>
</head>
<body>
<div id="demo"></div>
</body>
</html>
3 changes: 1 addition & 2 deletions packages/ove/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
<script src="./demo/index.js" type="module"></script>
</head>
<body>
<link rel="stylesheet" href="/style.css" />
<div id="app"><div id="demo"></div></div>
<div id="demo"></div>
</body>
</html>
2 changes: 1 addition & 1 deletion packages/sequence-utils/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@teselagen/sequence-utils",
"version": "0.3.20",
"version": "0.3.21",
"type": "commonjs",
"dependencies": {
"bson-objectid": "^2.0.4",
Expand Down
3 changes: 1 addition & 2 deletions packages/ui/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
<script src="./demo/index.js" type="module"></script>
</head>
<body>
<link rel="stylesheet" href="/style.css" />
<div id="app"><div id="demo"></div></div>
<div id="demo"></div>
</body>
</html>
15 changes: 1 addition & 14 deletions vite.react.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ import fs from "node:fs";
import react from "@vitejs/plugin-react";
import viteTsConfigPaths from "vite-tsconfig-paths";
import * as esbuild from "esbuild";
import vitePluginVirtualHtml from "vite-plugin-virtual-html";
import libCss from "vite-plugin-libcss";
import { camelCase } from "lodash";
import { getPort } from "./getPort";
Expand Down Expand Up @@ -87,19 +86,7 @@ export default ({ name }: { name: string; dir: string }) =>
]
})
]
: [
vitePluginVirtualHtml({
pages: {
index: {
entry: "./demo/index.js", // MUST
title: `${name} demo`, // optional, default: ''
body: `
<div id="demo"></div>
` // optional, default: '<div id="app"></div>'
}
}
})
])
: [])
],
esbuild: {
loader: "jsx",
Expand Down

0 comments on commit 553c8c0

Please sign in to comment.