Skip to content

Commit

Permalink
example: modernise the build a touch.
Browse files Browse the repository at this point in the history
  • Loading branch information
thruflo committed Dec 3, 2024
1 parent 9dac47b commit ed5b394
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
4 changes: 2 additions & 2 deletions examples/write-patterns/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{
"compilerOptions": {
"target": "ES2020",
"target": "ESNext",
"useDefineForClassFields": true,
"lib": ["ES2020", "DOM", "DOM.Iterable"],
"lib": ["ESNext", "DOM", "DOM.Iterable"],
"module": "ESNext",
"skipLibCheck": true,

Expand Down
8 changes: 7 additions & 1 deletion examples/write-patterns/vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,21 @@ import react from '@vitejs/plugin-react'

// https://vitejs.dev/config/
export default defineConfig({
build: {
target: 'esnext'
},
optimizeDeps: {
exclude: ['@electric-sql/pglite'],
},
plugins: [
react(),
VitePWA({
registerType: 'autoUpdate',
workbox: {
maximumFileSizeToCacheInBytes: 10 * 1024 ** 2
},
devOptions: {
enabled: true,
enabled: false,
},
includeAssets: ['shared/app/icons/*'],
manifest: {
Expand Down

0 comments on commit ed5b394

Please sign in to comment.