esbuild

esbuild not bundling files

心已入冬 提交于 2021-01-27 04:48:20
问题 I am trying to use esbuild to bundle and minify my files in an npm project. It is minimizing every file that I pass in, but it is not bundling. It gives me the error that I must use 'outdir' when there are multiple files. However, this gives me back all of those files, minimized, in a folder. This is not the behavior that I want and is not bundling. I just want it to take all of those files and merge them into one. let {build} = require("esbuild"); let files = ["file1.js", "file2.js"]; build(