File tree Expand file tree Collapse file tree 1 file changed +4
-11
lines changed
Expand file tree Collapse file tree 1 file changed +4
-11
lines changed Original file line number Diff line number Diff line change @@ -27,14 +27,13 @@ npm install acorn-node
2727var acorn = require (' acorn-node' )
2828```
2929
30- The API is the same as [ acorn] ( https://github.com/acornjs/acorn ) , but the following syntax features are enabled by default:
30+ The API is the same as [ acorn] ( https://github.com/acornjs/acorn ) , but with plugins to match Node.js behaviour.
3131
32- - Public and private class instance fields
33- - Public and private class static fields
32+ - Currently no plugins are in use as the main ` acorn ` branch supports the same syntax as Node.js.
3433
35- And the following options have different defaults from acorn, to match Node modules:
34+ The following options have different defaults from acorn, to match Node modules:
3635
37- - ` ecmaVersion: 2021 `
36+ - ` ecmaVersion: 2022 `
3837 - ` allowHashBang: true `
3938 - ` allowReturnOutsideFunction: true `
4039
@@ -48,9 +47,3 @@ See the [acorn documentation](https://github.com/acornjs/acorn#distwalkjs) for d
4847## License
4948
5049The files in the repo root and the ./test folder are licensed as [ Apache-2.0] ( LICENSE.md ) .
51-
52- The files in lib/ are generated from other packages:
53-
54- - lib/class-fields: [ acorn-class-fields] ( https://github.com/acornjs/acorn-class-fields ) , MIT
55- - lib/class-private-elements: [ acorn-class-private-elements] ( https://github.com/acornjs/acorn-class-private-elements ) , MIT
56- - lib/static-class-features: [ acorn-static-class-features] ( https://github.com/acornjs/acorn-static-class-features ) , MIT
You can’t perform that action at this time.
0 commit comments