-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Description
This package doesn't work when deployed to web due to minification when compiling to JavaScript.
The package is using the Type.toString()
to determine class names and parameters for deserialisation. When the code is deployed to web, at runtime it will output a minified String
:
Env | Output |
---|---|
Local Debug | Closure: ({required String age, required String name}) => Person from: (...args) => context[property](...args) |
Local Release | Closure 'minified:pq' |
See this relevant issue dart-lang/sdk#46373.
It should be made clear in the docs that this won't work on web.
Metadata
Metadata
Assignees
Labels
No labels