-
-
Notifications
You must be signed in to change notification settings - Fork 218
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
Support banner and footer esbuild options? #451
Comments
You can use a esbuild plugin to modify build options: https://esbuild.github.io/plugins/#build-options and pass the plugin to import type { Options } from 'tsup'
export const tsup: Options = {
esbuildPlugins: [yourPlugin]
} |
🎉 This issue has been resolved in version 5.6.0 🎉 The release is available on: Your semantic-release bot 📦🚀 |
Now you can directly use |
Just a notice for new searchers come in. A bit different from esbuild. topLevelCreateRequire(import\.meta.url) result in topLevelCreateRequire(import.meta.url) topLevelCreateRequire(import.meta.url) result in topLevelCreateRequire("file:///path/to/tsup.config.ts") |
@egoist topLevelCreateRequire("file:///path/to/tsup.config.ts") should be rewritten to topLevelCreateRequire("file:///path/to/package.json") |
https://esbuild.github.io/api/#banner
https://esbuild.github.io/api/#footer
Not sure if there's a nice way to dynamically forward any kind of options esbuild supports so this doesn't have to be updated all the time.
Use case: evanw/esbuild#946 (comment)
The text was updated successfully, but these errors were encountered: