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
When using the esbuild executor, I am unable to define my own outfile/outdir as it gets overwritten by the executor. This is causing my builds to fail when I set splitting to true and define and outdir (the executor sets its own outfile - creating a conflict).
Node : 16.16.0
OS : darwin arm64
npm : 8.11.0
nx : 15.5.3
@nrwl/angular : Not Found
@nrwl/cypress : 15.5.3
@nrwl/detox : Not Found
@nrwl/devkit : 15.5.3
@nrwl/esbuild : 15.6.2
@nrwl/eslint-plugin-nx : 15.5.3
@nrwl/expo : Not Found
@nrwl/express : Not Found
@nrwl/jest : 15.5.3
@nrwl/js : 15.5.3
@nrwl/linter : 15.5.3
@nrwl/nest : Not Found
@nrwl/next : 15.5.3
@nrwl/node : 15.5.3
@nrwl/nx-cloud : 15.0.2
@nrwl/nx-plugin : Not Found
@nrwl/react : 15.5.3
@nrwl/react-native : Not Found
@nrwl/rollup : 15.5.3
@nrwl/schematics : Not Found
@nrwl/storybook : 15.5.3
@nrwl/web : 15.5.3
@nrwl/webpack : 15.5.3
@nrwl/workspace : 15.5.3
@nrwl/vite : Not Found
typescript : 4.9.4
---------------------------------------
Local workspace plugins:
undefined
---------------------------------------
Community plugins:
@nxext/capacitor: 15.2.0
@nxext/ionic-react: 15.1.0
Failure Logs
error: Cannot use both "outfile" and "outdir"
Error: Build failed with 1 error:
error: Cannot use both "outfile" and "outdir"### Additional Information
_No response_
The text was updated successfully, but these errors were encountered:
Could this be fixed before 16.0.0 release, I see there is a fix waiting.
I badly need to have multiple outputs and imports using esbuild splitting and creating library chunks.
Current Behavior
When using the esbuild executor, I am unable to define my own outfile/outdir as it gets overwritten by the executor. This is causing my builds to fail when I set splitting to true and define and outdir (the executor sets its own outfile - creating a conflict).
My project.json
And the output is
Expected Behavior
I would expect the executor to not add an outfile or outdir if it already exists in the esbuildOptions - and then the build would succeed
I think this is happening due this block in /packages/esbuild/src/executors/esbuild/lib)/build-esbuild-options.ts
One fix could be
GitHub Repo
No response
Steps to Reproduce
Nx Report
Failure Logs
The text was updated successfully, but these errors were encountered: