mirror of
https://github.com/outline/outline.git
synced 2026-12-06 11:12:32 +03:00
improve global shim
This commit is contained in:
1 parent
cb475abc69
commit
59e6f3f22f
1 file changed
+8
-1
+8
-1
@@ -75,7 +75,14 @@ export default defineConfig({
|
||||
},
|
||||
}),
|
||||
],
|
||||
define: { global: "window" },
|
||||
optimizeDeps: {
|
||||
esbuildOptions: {
|
||||
// Node.js global to browser globalThis
|
||||
define: {
|
||||
global: "globalThis",
|
||||
},
|
||||
},
|
||||
},
|
||||
resolve: {
|
||||
alias: {
|
||||
"~": path.resolve(__dirname, "./app"),
|
||||
|
||||
Reference in new issue
Block a user