-
Notifications
You must be signed in to change notification settings - Fork 113
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. Weβll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: support bun
plugin
#333
base: main
Are you sure you want to change the base?
Conversation
Currently, we can't run tests using the Alternatively, we can put the bun test cases in a separate directory rewrite the bun-related test cases with |
meta.build = build | ||
const { onResolve, onLoad, config: initialOptions } = build | ||
|
||
const onResolveFilter = plugin.esbuild?.onResolveFilter ?? /.*/ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
const onResolveFilter = plugin.esbuild?.onResolveFilter ?? /.*/ | |
const onResolveFilter = plugin.bun?.onResolveFilter ?? /.*/ |
const { onResolve, onLoad, config: initialOptions } = build | ||
|
||
const onResolveFilter = plugin.esbuild?.onResolveFilter ?? /.*/ | ||
const onLoadFilter = plugin.esbuild?.onLoadFilter ?? /.*/ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
const onLoadFilter = plugin.esbuild?.onLoadFilter ?? /.*/ | |
const onLoadFilter = plugin.bun?.onLoadFilter ?? /.*/ |
} | ||
|
||
// `load` and `transform` may return a sourcemap without toString and toUrl, | ||
// but esbuild needs them, we fix the two methods |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
// but esbuild needs them, we fix the two methods | |
// but bun needs them, we fix the two methods |
e01729c
to
af3b0ec
Compare
8ba3416
to
6fb5709
Compare
π Linked issue
close: #329
β Type of change
π Description
π Checklist