egoist / esbuild-register

Transpile JSX, TypeScript and esnext features on the fly with esbuild
MIT License
990 stars 52 forks source link

error should be thrown #70

Open mesqueeb opened 2 years ago

mesqueeb commented 2 years ago

i had an issue where esbuild's installation was faulty:

failed to load config from /Users/empidornis/ghq/github.com/cycraft/cc/packages/admin-console/vite.config.ts
error during build:
Error: The package "esbuild-darwin-arm64" could not be found, and is needed by esbuild.

If you are installing esbuild with npm, make sure that you don't specify the
"--no-optional" flag. The "optionalDependencies" package.json feature is used

but with esbuild-register it would just hang without throwing any error.

would be nice if esbuild-register properly threw a similar error