Skip to content

Commit f27f894

Browse files
refactor: remove unused dependencies and update import statements
1 parent 4358c91 commit f27f894

File tree

1 file changed

+0
-16
lines changed

1 file changed

+0
-16
lines changed

vite.config.ts

-16
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,6 @@ import { glob } from 'glob'
77
import react from '@vitejs/plugin-react'
88
import dts from 'vite-plugin-dts'
99
import { libInjectCss } from 'vite-plugin-lib-inject-css'
10-
import { NodeGlobalsPolyfillPlugin } from '@esbuild-plugins/node-globals-polyfill'
11-
import { NodeModulesPolyfillPlugin } from '@esbuild-plugins/node-modules-polyfill'
1210
import path from 'path'
1311

1412
export default defineConfig({
@@ -25,20 +23,6 @@ export default defineConfig({
2523
setupFiles: ['./tests/setupTest.ts'],
2624
css: true,
2725
},
28-
optimizeDeps: {
29-
esbuildOptions: {
30-
plugins: [
31-
NodeGlobalsPolyfillPlugin({
32-
process: true,
33-
buffer: true,
34-
}),
35-
NodeModulesPolyfillPlugin(),
36-
],
37-
loader: {
38-
'.node': 'file',
39-
},
40-
},
41-
},
4226
resolve: {
4327
alias: {
4428
'@': path.resolve(__dirname, './src'),

0 commit comments

Comments
 (0)