You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
RevJS uses class (function) names to identify models as this makes typings nice to work with (enables DRY + refactoring).
However Webpack (UglifyJS) munges these model names.
There is a workaround which is to enable keep_fnames, but this results in increased bundle size so is not ideal.
We might be able to use keep_classnames. Not tried that. There is also a reserved option for uglify-es that we might be able to pass a list of model names to.
Failing that, we could resort to an additional, non-enumerated __name string property on models, which is a duplicate of the class name. Not pretty and not DRY though!
The text was updated successfully, but these errors were encountered:
RevJS uses class (function) names to identify models as this makes typings nice to work with (enables DRY + refactoring).
However Webpack (UglifyJS) munges these model names.
There is a workaround which is to enable keep_fnames, but this results in increased bundle size so is not ideal.
We might be able to use
keep_classnames
. Not tried that. There is also areserved
option for uglify-es that we might be able to pass a list of model names to.Failing that, we could resort to an additional, non-enumerated
__name
string property on models, which is a duplicate of the class name. Not pretty and not DRY though!The text was updated successfully, but these errors were encountered: