vite-poly
This commit is contained in:
parent
7896950ec8
commit
2500206a9d
1165
package-lock.json
generated
1165
package-lock.json
generated
File diff suppressed because it is too large
Load Diff
|
@ -131,6 +131,7 @@
|
|||
"vike": "0.4.148",
|
||||
"vite": "5.2.10",
|
||||
"vite-plugin-mkcert": "^1.17.3",
|
||||
"vite-plugin-node-polyfills": "0.21.0",
|
||||
"vite-plugin-sass-dts": "^1.3.17",
|
||||
"vite-plugin-solid": "2.10.1",
|
||||
"y-prosemirror": "1.2.2",
|
||||
|
|
|
@ -4,6 +4,5 @@
|
|||
"source": "/((?!assets/).*)",
|
||||
"destination": "/api/edge-ssr.js"
|
||||
}
|
||||
],
|
||||
"nodeVersion": "20"
|
||||
]
|
||||
}
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
import ssrPlugin from 'vike/plugin'
|
||||
import { defineConfig } from 'vite'
|
||||
import mkcert from 'vite-plugin-mkcert'
|
||||
import { nodePolyfills } from 'vite-plugin-node-polyfills';
|
||||
import sassDts from 'vite-plugin-sass-dts'
|
||||
import solidPlugin from 'vite-plugin-solid'
|
||||
|
||||
|
@ -39,6 +40,19 @@ export default defineConfig(({ mode, command }) => {
|
|||
ssrPlugin({ includeAssetsImportedByServer: true }),
|
||||
sassDts(),
|
||||
cssModuleHMR(),
|
||||
nodePolyfills({
|
||||
include: ['path', 'stream', 'util'],
|
||||
exclude: ['http'],
|
||||
globals: {
|
||||
Buffer: true,
|
||||
//global: true,
|
||||
//process: true,
|
||||
},
|
||||
overrides: {
|
||||
fs: 'memfs',
|
||||
},
|
||||
protocolImports: true,
|
||||
}),
|
||||
]
|
||||
|
||||
if (command === 'serve') {
|
||||
|
|
Loading…
Reference in New Issue
Block a user