Skip to content

Commit cba273a

Browse files
brc-ddJohn Campion Jr
andcommitted
fix(build): allow data-loaders files in packages to be found (closes #2272)
Co-authored-by: John Campion Jr <john@brightshore.com>
1 parent f744364 commit cba273a

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/node/plugins/staticDataPlugin.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ export const staticDataPlugin: Plugin = {
7171
} else {
7272
// use vite's load config util as a away to load Node.js file with
7373
// TS & native ESM support
74-
const res = await loadConfigFromFile({} as any, id)
74+
const res = await loadConfigFromFile({} as any, id.replace(/\?.*$/, ''))
7575

7676
// record deps for hmr
7777
if (server && res) {

0 commit comments

Comments
 (0)