When running tsup
or tsup-node
with a config file (either the standard file name scheme or by setting --config
with a file name), esbuild throws an error:
Invalid option in build() call: "watch"
// from node_modules\esbuild\lib\main.js:253:12
tsup.config.*
config file--config some_config.ts
--watch
with a custom config (--config
or config file)All of these even with watch
omitted, watch: false
or watch: undefined
inside the config file.
--no-config
--watch
without a custom config (--config
or config file)So it seems the parsing of the options from a config file handles the watch
option different from the CLI --watch
argument. Resulting in a --watch
argument added to the esbuild command, which is not allowed anymore (see release notes from esbuild).
Pay now to fund the work behind this issue.
Get updates on progress being made.
Maintainer is rewarded once the issue is completed.
You're funding impactful open source efforts
You want to contribute to this effort
You want to get funding like this too