Skip to content

Commit

Permalink
chore: update Deno configuration and Vite setup
Browse files Browse the repository at this point in the history
  • Loading branch information
posaune0423 committed Dec 10, 2024
1 parent 301d3de commit 71e8c10
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
8 changes: 7 additions & 1 deletion sample/deno.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"serve": "deno run --allow-net --allow-read jsr:@std/http@1/file-server dist/"
},
"compilerOptions": {
"lib": ["ES2020", "DOM", "DOM.Iterable"],
"lib": ["ESNext", "DOM", "DOM.Iterable"],
"jsx": "react-jsx",
"jsxImportSource": "react",
"jsxImportSourceTypes": "@types/react"
Expand All @@ -21,5 +21,11 @@
"react-dom": "npm:react-dom@^18.3.1",
"use-haptic": "npm:use-haptic@^1.0.1",
"vite": "npm:vite@^6.0.1"
},
"deploy": {
"project": "27435cf6-854d-4fbb-9505-2719b02b08ad",
"exclude": ["**/node_modules"],
"include": [],
"entrypoint": "jsr:@std/[email protected]/file-server"
}
}
4 changes: 2 additions & 2 deletions sample/vite.config.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import { defineConfig } from 'vite'
import { defineConfig, PluginOption } from 'vite'
import deno from '@deno/vite-plugin'
import react from '@vitejs/plugin-react-swc'

// https://vite.dev/config/
export default defineConfig({
plugins: [deno(), react()],
plugins: [deno() as PluginOption, react()],
})

0 comments on commit 71e8c10

Please sign in to comment.