Replies: 1 comment 5 replies
-
The docs mention explicitly that it should be loose: false, not true
…On Tue, 8 Jun 2021, 21:55 Reto Höhener, ***@***.***> wrote:
I tried to follow https://mobx.js.org/installation.html and
https://mobx.js.org/enabling-decorators.html to the letter, but now the
metro bundler tells me this:
transform[stderr]: [proposal-class-properties]: You are using the "loose:
true" option and you are explicitly setting a value for the
"setPublicClassFields" assumption. The "loose" option can cause
incompatibilities with the other class features plugins, so it's
recommended that you replace it with the following top-level option:
transform[stderr]: "assumptions": {
transform[stderr]: "setPublicClassFields": true,
transform[stderr]: "privateFieldsAsProperties": true
transform[stderr]: }
is that loose setting still required, what should I do? could you please
update the docs?
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#2970>, or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAN4NBHZ3GACTAWO56EOPV3TRZ7TZANCNFSM46KW3PGQ>
.
|
Beta Was this translation helpful? Give feedback.
5 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I tried to follow https://mobx.js.org/installation.html and https://mobx.js.org/enabling-decorators.html to the letter, but now the metro bundler tells me this:
transform[stderr]: [proposal-class-properties]: You are using the "loose: true" option and you are explicitly setting a value for the "setPublicClassFields" assumption. The "loose" option can cause incompatibilities with the other class features plugins, so it's recommended that you replace it with the following top-level option:
transform[stderr]: "assumptions": {
transform[stderr]: "setPublicClassFields": true,
transform[stderr]: "privateFieldsAsProperties": true
transform[stderr]: }
is that loose setting still required, what should I do? could you please update the docs?
Beta Was this translation helpful? Give feedback.
All reactions