-
Notifications
You must be signed in to change notification settings - Fork 79
Update js file in async-rewriter to typescript to resolve acorn dependency issues #344
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
974fe18
to
c49b68a
Compare
packages/async-rewriter/package.json
Outdated
"acorn-numeric-separator": "^0.3.2", | ||
"acorn-private-methods": "^0.3.1", | ||
"acorn-static-class-features": "^0.2.1", | ||
"acorn-class-fields": "^0.3.7", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
do we want to pin those to an exact version? or is too much paranoid?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
hah. doesn't hurt. Let's do it. Pushed update
Confused by why the check fails:
Running |
Looks like a codesign issue now 🤔
|
dfdaec0
to
51708a4
Compare
@Anemy do any of these errors happen locally or only on our hosts? I find it strange that compass-shell would require acorn as a dep 🤔 What would happen if you added acorn to top-level package.json? We do that for some our build deps. |
@lrlna It happens locally as well:
or just
I think it's strange it's marked as missing here. I can add it into the I think we want it at the package level since it's a dependency, not a dev-dependency. |
64ee576
to
1f259a5
Compare
"ignore": [ | ||
"@hot-loader/react-dom", | ||
"debug", | ||
"acorn" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Apologies for the big diff in this file and package-lock.json - it was using single space and not double space for indentation. The only change in this file is adding acorn
here to the ignore for dependency-check.
daa0a12
to
3eeb021
Compare
I think it should be good to go, except
Fixed by reverting the changes I had on the top level package-lock.json |
Acorn plugins were resolving incorrectly when mongosh packages were webpacked from vscode. Two of the 4 acorn plugins were exporting an object with default but not as a function. Converting the
await.js
file to typescript, bumping the acorn plugin versions, and importing them as es6 modules makes them work correctly when built frombrowser-repl
andvscode
.This error also existed in the
browser-repl
when theawait.js
file was converted to typescript. Changing to es6 modules fixed the importing since it made the acorn plugins build correctly as functions (not .default).Needed for https://jira.mongodb.org/browse/VSCODE-172
Open q: was the imports reason the
await.js
file was in js not typescript?