[@rollup/plugin-commonjs] Incorrect compilation of this
in field declaration inside a class.
#1479
Labels
this
in field declaration inside a class.
#1479
Expected Behavior
this
inside class A should be preserved aftercommonjs
transformation.When running
npm run exec:dev
, the output is1
.Actual Behavior
this
inside class A is transformed intocommonjsGlobal
.When running
npm run exec:build
, an error is thrown.Additional Information
The check here is heuristic. It does not check for the case of class.
The text was updated successfully, but these errors were encountered: