allow vite to request files in the browser from the global node_modules folder
This commit is contained in:
@@ -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()],
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user