Using
"dependencies": { "acorn-node": "^2.0.1" }
In the index.js file in node_modules there is an old ecmaVersion, it should be 2021 like in the repo:
return xtend({
ecmaVersion: 2020,
allowHashBang: true,
allowReturnOutsideFunction: true
}, opts)
Related Issue: @nodejs/undici#1479
Using
"dependencies": { "acorn-node": "^2.0.1" }In the index.js file in node_modules there is an old ecmaVersion, it should be 2021 like in the repo:
acorn-node/src/index.js
Line 13 in 4ac53fa
Related Issue: @nodejs/undici#1479