You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm trying to build my project with multiple entry points, so I use the "input" setting as array and i set "outdir" in my custom config file but ESBuild throws error: Must use "outdir" when there are multiple input files.
Alternatively, i can generate multiple entry points using an array of config objects, but I guess that's not a desired behavior and in the other hand, since "outdir" is not used in esbuild config, if i want to solve it, i must define "outdir" in "buildOptions" object, but we have other problem, it throws error: Cannot use both "outfile" and "outdir" and it doesn't matter if i set "outfile" as undefined, unknown, null or i don't set it, the error goin to be throw.
Keep in mind that, if i define "input" as array i desire that aqu set the "name" of the file as [name].production, [name].development and [name] for the entry, and not [package_name].production, [package_name].development and [package_name] becase each overwrite the last, it would great that Aqu do it by default.
My Settings file.
Context: I am creating an encryption and signature module that includes symmetric and asymmetric methodology and the document or message signature module.
// aqu.config.tsexportdefault{name: '[name]',input: ['./src/index.ts','./src/asymmetric.ts','./src/symmetric.ts','./src/signer.ts','./src/types.ts','./src/utils.ts'],format: ['cjs','esm'],// will generate multiple outputs: one for cjs and one for esmcjsMode: 'production',// will generate separate files for development and productionoutdir: 'dist',// default output directorydeclaration: 'bundle',// will bundle declarations using https://github.com/timocov/dts-bundle-generatorexternalNodeModules: true,// automatically will mark all node_modules as externaltsconfig: 'tsconfig.json',// default path to tsconfigincremental: true,// will build incrementallybuildOptions: {},// custom esbuild optionswatchOptions: {// chokidar watch optionsignored: ['node_modules/**','dist/**','build/**','out/**'],// by default, will ignore those foldersfollowSymlinks: false,// will not follow symlinks},};
The text was updated successfully, but these errors were encountered:
Summary
I'm trying to build my project with multiple entry points, so I use the "input" setting as array and i set "outdir" in my custom config file but ESBuild throws
error: Must use "outdir" when there are multiple input files
.Alternatively, i can generate multiple entry points using an array of config objects, but I guess that's not a desired behavior and in the other hand, since "outdir" is not used in esbuild config, if i want to solve it, i must define "outdir" in "buildOptions" object, but we have other problem, it throws
error: Cannot use both "outfile" and "outdir"
and it doesn't matter if i set "outfile" as undefined, unknown, null or i don't set it, the error goin to be throw.Keep in mind that, if i define "input" as array i desire that aqu set the "name" of the file as
[name].production
,[name].development
and[name]
for the entry, and not[package_name].production
,[package_name].development
and[package_name]
becase each overwrite the last, it would great that Aqu do it by default.My Settings file.
Context: I am creating an encryption and signature module that includes symmetric and asymmetric methodology and the document or message signature module.
The text was updated successfully, but these errors were encountered: