-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
support for .node extension like webpack does #3963
Comments
|
@hyrious thanks
but since I'm building for browser (not node.js on server) not sure why 'path' + '.node' file would be needed anyway (incompatible with browsers). |
I myself didn't use nx and angular so the correct options needs yourself to find out. For nx I googled this: https://nx.dev/recipes/running-tasks/pass-args-to-commands#:~:text=Providing%20the%20%22%2D%2Dargs%22%20option where it seems you need either defining custom options or use |
I'm using Nx + angular 18 which supports esbuild by default for new project, though I've read Angular doesn't expose esbuild options.
Large existing project (came from ng16 and webpack) which has some depencies on a native
.node
extension I'm trying to remove without sucess.when compiling I get these errors
Q: does esbuild support
.node
at all ?looking at #3947 (comment) it doesn't appear to
| All require() calls resolve to JavaScript files that esbuild can understand (e.g. not to .node native extensions)
Q: what about .wasm ? I assume same.
I've spent days looking for plugins (or alternative to using that deep depencies) and not finding something I can use in Angular (which may not expose all the esbuild options).
The text was updated successfully, but these errors were encountered: