allow vite to request files in the browser from the global node_modules folder

This commit is contained in:
Jacob Overgaard
2023-01-25 10:10:12 +01:00
parent 4be41fe2d7
commit aa7d121761

View File

@@ -11,5 +11,11 @@ export default defineConfig({
},
sourcemap: true,
},
server: {
fs: {
// Allow serving files from the global node_modules folder
allow: ['.', '../../node_modules'],
},
},
plugins: [viteTSConfigPaths()],
});