File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ import { accessSync , constants as fsConstants } from "node:fs" ;
12import viteBasicSslPlugin from "@vitejs/plugin-basic-ssl" ;
23import dictionary from "./importDictionary.js" ;
3- import { loadEnv } from "vite" ;
4- import { accessSync , constants as fsConstants } from "node:fs" ;
54import { homedir } from "node:os" ;
65import { join } from "node:path" ;
6+ import { loadEnv } from "vite" ;
77
88const virtualModuleId = "adminui" ;
99const resolvedVirtualModuleId = "\0" + virtualModuleId ;
Original file line number Diff line number Diff line change 4343 "devDependencies" : {
4444 "@inertiajs/vue3" : " ^2.0.17" ,
4545 "@vitejs/plugin-basic-ssl" : " ^2.0.0" ,
46+ "rollup-plugin-node-externals" : " ^8.0.0" ,
4647 "vite" : " ^7.0.0" ,
4748 "vue" : " ^3.5.18" ,
4849 "ziggy-js" : " ^2.5.3"
Original file line number Diff line number Diff line change 11import { defineConfig } from "vite" ;
22import { resolve } from "node:path" ;
3+ import { nodeExternals } from 'rollup-plugin-node-externals'
34
45export default defineConfig ( {
56 build : {
@@ -10,4 +11,5 @@ export default defineConfig({
1011 fileName : "index" ,
1112 } ,
1213 } ,
14+ plugins : [ nodeExternals ( ) ]
1315} ) ;
You can’t perform that action at this time.
0 commit comments