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 encountered an issue when using esbuild to bundle a project that imports the zx library. The bundled output file fails to run due to the absence of the core.cjs file, which is required by the zx library.
Steps to Reproduce
Create a TypeScript file that imports the zx library.
Use esbuild to bundle the file.
Attempt to run the bundled JavaScript output.
Expected Behavior
The bundled JavaScript file should run without errors, and the functionality from the zx library should work as expected.
Actual Behavior
After bundling with esbuild, the generated JavaScript file does not include the necessary core.cjs file, leading to runtime errors.
🐛 Bug Report
Problem Description
I encountered an issue when using esbuild to bundle a project that imports the zx library. The bundled output file fails to run due to the absence of the core.cjs file, which is required by the
zx
library.Steps to Reproduce
zx
library.esbuild
to bundle the file.Expected Behavior
The bundled JavaScript file should run without errors, and the functionality from the
zx
library should work as expected.Actual Behavior
After bundling with
esbuild
, the generated JavaScript file does not include the necessarycore.cjs
file, leading to runtime errors.Reproduction Files
Build Command
The command used for bundling:
esbuild ./test.ts --bundle --outfile=out.js --platform=node --target=node18
Specifications
The text was updated successfully, but these errors were encountered: