Skip to content

Commit

Permalink
chore: handle dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
Guillermo Alejandro Gallardo Diez authored and Guillermo Alejandro Gallardo Diez committed Jan 4, 2025
1 parent 4e50be7 commit f35c086
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 20 deletions.
16 changes: 7 additions & 9 deletions templates/frontend/vite-react/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "hello-near",
"private": true,
"version": "0.0.0",
"version": "1.0.0",
"type": "module",
"scripts": {
"dev": "vite",
Expand Down Expand Up @@ -32,21 +32,19 @@
"near-api-js": "^4.0.3",
"react": "^18.3.1",
"react-dom": "^18.3.1",
"react-router": "^7.1.1"
"react-router": "^7.1.1",
"vite-plugin-eslint": "^1.8.1"
},
"devDependencies": {
"@eslint/js": "^9.17.0",
"@types/node": "^22.10.1",
"@types/react": "^18.3.17",
"@types/react": "^18.3.18",
"@types/react-dom": "^18.3.5",
"@vitejs/plugin-react-swc": "^3.5.0",
"encoding": "^0.1.13",
"@vitejs/plugin-react": "^4.3.4",
"eslint": "^9.17.0",
"eslint-plugin-react": "^7.37.2",
"eslint-plugin-react-hooks": "^5.0.0",
"eslint-plugin-react-refresh": "^0.4.16",
"globals": "^15.13.0",
"vite": "^6.0.3",
"vite-plugin-eslint": "^1.8.1"
"globals": "^15.14.0",
"vite": "^6.0.5"
}
}
22 changes: 11 additions & 11 deletions templates/frontend/vite-react/vite.config.js
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
import { defineConfig } from 'vite'
import react from '@vitejs/plugin-react-swc'
import react from '@vitejs/plugin-react'
import eslint from 'vite-plugin-eslint';
import { NodeGlobalsPolyfillPlugin } from '@esbuild-plugins/node-globals-polyfill';

// https://vite.dev/config/
export default defineConfig({
plugins: [react(),eslint()],
plugins: [react(), eslint()],
resolve: {
alias: {
'@': '/src',
Expand All @@ -14,14 +14,14 @@ export default defineConfig({
},
optimizeDeps: {
esbuildOptions: {
define: {
global: 'globalThis'
},
plugins: [
NodeGlobalsPolyfillPlugin({
buffer: true
})
]
define: {
global: 'globalThis'
},
plugins: [
NodeGlobalsPolyfillPlugin({
buffer: true
})
]
}
}
}
})

0 comments on commit f35c086

Please sign in to comment.