Skip to content

Commit

Permalink
Bump acorn to replace swc class properties transform (vercel#65715)
Browse files Browse the repository at this point in the history
Bumped acorn to latest version to let it parse class properties.

Class properties and private properties support was landed in 8.6.0,
bumping acorn parser to latest version then we can parse all the
syntaxes.
  • Loading branch information
huozhi authored and panteliselef committed May 20, 2024
1 parent d45a356 commit bb94b1a
Show file tree
Hide file tree
Showing 7 changed files with 36 additions and 45 deletions.
2 changes: 1 addition & 1 deletion packages/next/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,7 @@
"@vercel/ncc": "0.34.0",
"@vercel/nft": "0.26.4",
"@vercel/turbopack-ecmascript-runtime": "https://gitpkg-fork.vercel.sh/vercel/turbo/crates/turbopack-ecmascript-runtime/js?turbopack-240513.1",
"acorn": "8.5.0",
"acorn": "8.11.3",
"amphtml-validator": "1.0.35",
"anser": "1.4.9",
"arg": "4.1.0",
Expand Down
2 changes: 0 additions & 2 deletions packages/next/src/build/swc/options.ts
Original file line number Diff line number Diff line change
Expand Up @@ -437,8 +437,6 @@ export function getLoaderSWCOptions({
preferEsm: !!esm,
isPageFile,
env: {
// Workaround acorn issues
include: ['transform-class-properties'],
targets: {
// Targets the current version of Node.js
node: process.versions.node,
Expand Down
2 changes: 1 addition & 1 deletion packages/next/src/compiled/@vercel/nft/index.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion packages/next/src/compiled/acorn/LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
MIT License

Copyright (C) 2012-2020 by various contributors (see AUTHORS)
Copyright (C) 2012-2022 by various contributors (see AUTHORS)

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
2 changes: 1 addition & 1 deletion packages/next/src/compiled/acorn/acorn.js

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions packages/next/src/compiled/webpack/bundle5.js

Large diffs are not rendered by default.

67 changes: 30 additions & 37 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit bb94b1a

Please sign in to comment.