Skip to content

Commit

Permalink
fix(build): allow data-loaders files in packages to be found (closes #…
Browse files Browse the repository at this point in the history
…2272)

Co-authored-by: John Campion Jr <john@brightshore.com>
  • Loading branch information
brc-dd and JohnCampionJr committed Apr 24, 2023
1 parent f744364 commit cba273a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/node/plugins/staticDataPlugin.ts
Expand Up @@ -71,7 +71,7 @@ export const staticDataPlugin: Plugin = {
} else {
// use vite's load config util as a away to load Node.js file with
// TS & native ESM support
const res = await loadConfigFromFile({} as any, id)
const res = await loadConfigFromFile({} as any, id.replace(/\?.*$/, ''))

// record deps for hmr
if (server && res) {
Expand Down

0 comments on commit cba273a

Please sign in to comment.