Skip to content

Commit

Permalink
feat: update acorn and add private fields support
Browse files Browse the repository at this point in the history
  • Loading branch information
guybedford committed Jun 10, 2021
1 parent 9a88a22 commit dfe6df2
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 1 deletion.
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,9 @@
],
"devDependencies": {
"@vercel/ncc": "^0.25.1",
"acorn": "^8.1.0",
"acorn": "^8.3.0",
"acorn-class-fields": "^1.0.0",
"acorn-private-class-elements": "^1.0.0",
"acorn-static-class-features": "^1.0.0",
"bindings": "^1.4.0",
"codecov": "^3.6.5",
Expand Down
1 change: 1 addition & 0 deletions src/asset-relocator.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ const { pathToFileURL, fileURLToPath } = require('url');
acorn = acorn.Parser.extend(
require("acorn-class-fields"),
require("acorn-static-class-features"),
require("acorn-private-class-elements")
);

const extensions = ['.js', '.json', '.node'];
Expand Down
5 changes: 5 additions & 0 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -1175,6 +1175,11 @@ acorn@^8.1.0:
resolved "https://registry.yarnpkg.com/acorn/-/acorn-8.1.0.tgz#52311fd7037ae119cbb134309e901aa46295b3fe"
integrity sha512-LWCF/Wn0nfHOmJ9rzQApGnxnvgfROzGilS8936rqN/lfcYkY9MYZzdMqN+2NJ4SlTc+m5HiSa+kNfDtI64dwUA==

acorn@^8.3.0:
version "8.3.0"
resolved "https://registry.yarnpkg.com/acorn/-/acorn-8.3.0.tgz#1193f9b96c4e8232f00b11a9edff81b2c8b98b88"
integrity sha512-tqPKHZ5CaBJw0Xmy0ZZvLs1qTV+BNFSyvn77ASXkpBNfIRk8ev26fKrD9iLGwGA9zedPao52GSHzq8lyZG0NUw==

[email protected]:
version "0.8.2"
resolved "https://registry.yarnpkg.com/after/-/after-0.8.2.tgz#fedb394f9f0e02aa9768e702bda23b505fae7e1f"
Expand Down

0 comments on commit dfe6df2

Please sign in to comment.