Skip to content

Commit

Permalink
Bump acorn to replace swc class properties transform
Browse files Browse the repository at this point in the history
  • Loading branch information
huozhi committed May 13, 2024
1 parent 4128dd2 commit f1cfef0
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 f1cfef0

Please sign in to comment.