There was an error while loading. Please reload this page.
1 parent f744364 commit cba273aCopy full SHA for cba273a
1 file changed
src/node/plugins/staticDataPlugin.ts
@@ -71,7 +71,7 @@ export const staticDataPlugin: Plugin = {
71
} else {
72
// use vite's load config util as a away to load Node.js file with
73
// TS & native ESM support
74
- const res = await loadConfigFromFile({} as any, id)
+ const res = await loadConfigFromFile({} as any, id.replace(/\?.*$/, ''))
75
76
// record deps for hmr
77
if (server && res) {
0 commit comments