-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Closed
Description
It would be very useful to be able to provide esbuild with a config, instead of having to provide individual arguments, or use the JavaScript API
Here is a sample esbuild.config.ts
export default {
entryPoints: ['./src/index.ts'],
bundle: true,
platform: 'node',
outfile: 'build/main.js',
sourcemap: true,
target: 'node12',
external: Object.keys(require('../package.json').dependencies),
}CLI commands
> esbuild --config='esbuild.config.ts'
# any additional arguments would override config values
> esbuild --config='esbuild.config.ts' --watchFurthermore, the name esbuild.config.(json|js|ts) could be considered as a standard name, and picked up automatically. then the CLI call would be as simple as
> esbuildpablo1v, Aghassi, JulienKode, Marvelanda, iqhater and 31 more
Metadata
Metadata
Assignees
Labels
No labels