-
-
Notifications
You must be signed in to change notification settings - Fork 171
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 JS private instance fields? #999
Comments
Which shadow-cljs version do you use? There is nothing to be done from the shadow-cljs side. This is a Closure Compiler issue. If you are using the latest version of shadow-cljs (also of Closure Compiler) then I guess this isn't supported. Which target are you compiling for though? mariadb-connector-nodejs shouldn't require any processing of shadow-cljs at all, assuming the final target will run in node anyways? It will most certainly not run in the browser anyways? |
The latest one:
Yeah, it should not. I was just wondering if there was a way to get shadow-cljs to understand it.
Correct. Thanks for narrowing it down, searching some more I found the open issue in Google Closure Compiler for this: google/closure-compiler#2731 . It looks like they will eventually add it, but it is going to take awhile. Looks like I just have to freezer the version for Thanks. You can close this if you feel like this shouldn't be an open issue. |
Did you set anything in your build config that would change how JS is processed? ie. |
Oops, sorry for missing this the point above. I have set The reason I did this is because I want as few files as possible. AWS Lambda is susceptible to cold start times, and the last time I checked, things start measurable faster if I pack everything into one file. So we either have to pay a premium to keep instances warm or try to make sure things start as fast as possible (around 1 second). |
I recommend not setting |
Thank for this recommendation. I'll look into it when I have time. |
This question is probably a long shot, but do you know if there is a bundler that supports bundling of the output of shadow-cljs while also somehow integrating the source map for debugging crashes? I tried I tried |
You can try |
Doing that didn't help. However, I did discover a workaround. Due to the fact that shadow-cljs (ClojureScript?) generated source maps just have one section, it is possible to collapse it into a traditional source map. I created some sample code here to convert into a source map that This way I was able to use |
I'm using shadow-cljs to target a
:node-library
for AWS Lambda node v14. Recently I tried upgrading to using NPM module maradb @3.0.0
. I encountered the following build failure:It seems it caused by this line: https://github.com/mariadb-corporation/mariadb-connector-nodejs/blob/64ca753b7aa1a5d13e8e14799af5bda4271d5ce4/lib/connection.js#L1356 which is using private field syntax.
I tried changing
:output-feature-set
to:es-next
as well as upgrading from node v14 to node v16, but this doesn't help.Is this something that need Google Closure support, or something needs transpiling support like
babel
? Or is parsing done insideshadow-cljs
and it is something that needs to be added?The text was updated successfully, but these errors were encountered: