Reproduction link or steps
REPL
What is expected?
The output to be:
//#region data.json
const __proto__ = { foo: "bar" };
var data_default = {
"": "The property below should be converted to a computed property:",
["__proto__"]: __proto__
};
//#endregion
//#region entry.js
console.log(data_default);
//#endregion
What is actually happening?
The output is:
//#region data.json
var data_default = {
"": "The property below should be converted to a computed property:",
["__proto__"]: __proto__
};
//#endregion
//#region entry.js
console.log(data_default);
//#endregion
System Info
Any additional comments?
Found in esbuild tests.