CommonJS properties should be enumerable
arv opened this issue · 0 comments
arv commented
// x.js
export var a = 1;
export var b = 2;
// Options: --modules=commonjs
import * as m from './x.js';
assert.deepEqual(Object.keys(m), ['a', 'b']);
The generated code generates non enumerable properties on the module object.