Closed dnalborczyk closed 5 years ago
static props is a companion proposal to the class fields proposal.
static props is a companion proposal to the class fields proposal.
yeah, that could be. although both are supported by V8 and node.js v12 (commonjs) without a flag. the reference to https://github.com/standard-things/esm/issues/800 was just that I tried to look into it (but it was working just fine), and while I was at it, I tried static (pub+priv) as well to be sure.
on a different note, I wonder if it would be easier/better to use the acorn plugins instead (for anything stage 3 (bigint, class fields, static, etc. )?
essentially those:
"acorn-dynamic-import"
"acorn-import-meta"
"acorn-bigint"
"acorn-class-fields"
"acorn-static-class-features"
"acorn-private-methods" // maybe not, since not in V8, node.js yet
"acorn-export-ns-from"
update: private methods
might be already implemented behind a flag, I haven't looked. https://developers.google.com/web/updates/2018/12/class-fields
We plan on shipping support for private methods and accessors soon.
Naw, I find their plugins lacking in areas or overly strict in others. Rolling our own provides a balance better suited for esm
.
was just trying to look into: https://github.com/standard-things/esm/issues/800
node v12.1.0 esm: 3.2.22
repro:
also tested latest master with https://github.com/standard-things/esm/issues/787 and https://github.com/standard-things/esm/commit/3c50b8393f353cae131d92dc6c299b75d8ad33dd but same result.