ci: add vite-plugin-node-polyfills plugin
This commit is contained in:
parent
42de97519b
commit
ed410051e2
|
@ -62,6 +62,7 @@
|
||||||
"tailwindcss": "^3.4.1",
|
"tailwindcss": "^3.4.1",
|
||||||
"typescript": "^5.1.6",
|
"typescript": "^5.1.6",
|
||||||
"vite": "^5.1.0",
|
"vite": "^5.1.0",
|
||||||
|
"vite-plugin-node-polyfills": "^0.21.0",
|
||||||
"vite-tsconfig-paths": "^4.2.1"
|
"vite-tsconfig-paths": "^4.2.1"
|
||||||
},
|
},
|
||||||
"engines": {
|
"engines": {
|
||||||
|
|
|
@ -1,6 +1,7 @@
|
||||||
import { vitePlugin as remix } from "@remix-run/dev"
|
import {vitePlugin as remix} from "@remix-run/dev"
|
||||||
import { defineConfig } from "vite"
|
import {defineConfig} from "vite"
|
||||||
import tsconfigPaths from "vite-tsconfig-paths"
|
import tsconfigPaths from "vite-tsconfig-paths"
|
||||||
|
import {nodePolyfills} from 'vite-plugin-node-polyfills'
|
||||||
|
|
||||||
export default defineConfig({
|
export default defineConfig({
|
||||||
plugins: [
|
plugins: [
|
||||||
|
@ -8,7 +9,8 @@ export default defineConfig({
|
||||||
ssr: false,
|
ssr: false,
|
||||||
ignoredRouteFiles: ["**/*.css"]
|
ignoredRouteFiles: ["**/*.css"]
|
||||||
}),
|
}),
|
||||||
tsconfigPaths()
|
tsconfigPaths(),
|
||||||
|
nodePolyfills(),
|
||||||
],
|
],
|
||||||
server: {
|
server: {
|
||||||
fs: {
|
fs: {
|
||||||
|
|
Loading…
Reference in New Issue