The following code:
export const { A: B } = {};
Should be transformed to something like:
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.B = void 0;
const {
A: B
} = {};
exports.B = B;
But with experimentalImportSupport enabled, you get:
const { A: B } = {};
exports.A = A;
Which is invalid syntax.
The following code:
Should be transformed to something like:
But with experimentalImportSupport enabled, you get:
Which is invalid syntax.