Use the correct context when re-using a cached NodePath (#12331)
This commit is contained in:
@@ -0,0 +1,5 @@
|
||||
let Vec3;
|
||||
|
||||
export class Light {
|
||||
_color = Vec3;
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"plugins": [
|
||||
"transform-modules-systemjs",
|
||||
"proposal-class-properties"
|
||||
]
|
||||
}
|
||||
21
packages/babel-plugin-transform-modules-systemjs/test/fixtures/regression/issue-12329/output.mjs
vendored
Normal file
21
packages/babel-plugin-transform-modules-systemjs/test/fixtures/regression/issue-12329/output.mjs
vendored
Normal file
@@ -0,0 +1,21 @@
|
||||
System.register([], function (_export, _context) {
|
||||
"use strict";
|
||||
|
||||
var Light, Vec3;
|
||||
|
||||
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
||||
|
||||
_export("Light", void 0);
|
||||
|
||||
return {
|
||||
setters: [],
|
||||
execute: function () {
|
||||
_export("Light", Light = class Light {
|
||||
constructor() {
|
||||
_defineProperty(this, "_color", Vec3);
|
||||
}
|
||||
|
||||
});
|
||||
}
|
||||
};
|
||||
});
|
||||
Reference in New Issue
Block a user