Skip to content
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

||= #381

Open
dy opened this issue Mar 3, 2024 · 1 comment
Open

||= #381

dy opened this issue Mar 3, 2024 · 1 comment

Comments

@dy
Copy link

dy commented Mar 3, 2024

https://unpkg.com/[email protected]/dist/ulive.es.js?module gives

Cannot generate module for [email protected]/dist/ulive.es.js

SyntaxError: unknown: Support for the experimental syntax 'logicalAssignment' isn't currently enabled (31:11):

  29 |     c = {
  30 |       get value() {
> 31 |         e ||= effect(() => s.value = fn());
     |           ^
  32 |         return s.value
  33 |       }
  34 |     },

Add @babel/plugin-proposal-logical-assignment-operators (https://git.io/vAlRe) to the 'plugins' section of your Babel config to enable transformation.

Would it be possible to enable it?

@vanodevium
Copy link

This is one more example

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants