Skip to content

Commit 73ac314

Browse files
update deps, use the vite plugin for the example (#25)
* use the vite plugin * preview builds * updated versions * pass checks
1 parent 6704961 commit 73ac314

File tree

8 files changed

+986
-857
lines changed

8 files changed

+986
-857
lines changed

biome.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"$schema": "https://biomejs.dev/schemas/2.0.6/schema.json",
2+
"$schema": "https://biomejs.dev/schemas/2.1.2/schema.json",
33
"assist": {
44
"actions": {
55
"source": {
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,6 @@
1919
</div>
2020
</div>
2121

22-
<script src="/dist/index.js"></script>
22+
<script src="/app/index.tsx" type="module"></script>
2323
</body>
2424
</html>

examples/basic/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@
55
"private": true,
66
"description": "An example of using the sandbox package",
77
"scripts": {
8-
"start": "wrangler dev",
9-
"deploy": "wrangler deploy"
8+
"start": "vite dev",
9+
"deploy": "vite build && wrangler deploy"
1010
},
1111
"author": "",
1212
"license": "MIT"

examples/basic/vite.config.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
import { defineConfig } from "vite";
2+
import react from "@vitejs/plugin-react";
3+
import { cloudflare } from "@cloudflare/vite-plugin";
4+
5+
export default defineConfig({
6+
plugins: [react(), cloudflare()],
7+
});

examples/basic/wrangler.jsonc

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,6 @@
1010
"assets": {
1111
"directory": "public"
1212
},
13-
"build": {
14-
"command": "bun build app/index.tsx --outdir public/dist",
15-
"watch_dir": "app"
16-
},
1713
"containers": [
1814
{
1915
"class_name": "Sandbox",

0 commit comments

Comments
 (0)