Skip to content

Commit b10b838

Browse files
authored
Merge pull request #590 from dev-five-git/fix-bun-onload
Fix bun onload
2 parents dd00763 + 61e80c1 commit b10b838

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
{"changes":{"packages/bun-plugin/package.json":"Patch"},"note":"Fix bun onload","date":"2026-03-13T11:15:36.153632100Z"}

packages/bun-plugin/src/plugin.ts

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -105,8 +105,11 @@ plugin({
105105
)
106106

107107
// Load source files from packages directory (file namespace)
108-
build.onLoad({ filter: /.*\.(tsx|ts|jsx|mjs)/ }, ({ path }) =>
109-
loadSourceFile(path),
108+
build.onLoad(
109+
{
110+
filter: /\.(?:tsx?|jsx|mjs)$|[\\/]@devup-ui[\\/].*\.js$/,
111+
},
112+
({ path }) => loadSourceFile(path),
110113
)
111114
},
112115
})

0 commit comments

Comments
 (0)