-
Notifications
You must be signed in to change notification settings - Fork 8
Open
Description
After updating babel I have noticed that @event is working incorrectly. This probably affects some other decorators as well.
It happens when instance of a class containing events is being created. Babel doesn't "see", that properties have been defined on class prototype already and defines new set of properties, which are undefined. After some investigation I found out, that assigning this to false fixes the problem. Is there any reason that property descriptor has to be configurable?
babelrc:
{
"presets": [
[
"@babel/preset-env",
{
"targets": {
"esmodules": true
},
"modules": false
}
]
],
"plugins": [
"lodash",
"@babel/plugin-transform-runtime"
]
}
babel versions:
"@babel/runtime": "^7.14.0",
"@babel/core": "^7.14.3",
"@babel/plugin-transform-runtime": "^7.14.3",
"@babel/preset-env": "^7.14.2",
"babel-plugin-lodash": "^3.3.4"
webpack version: 5.38.1
knockout-decorators version: 2.0.0
Metadata
Metadata
Assignees
Labels
No labels