Skip to content
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

Fixing the Wasm blocker for Parser - try 2 #495

Merged
merged 3 commits into from
Dec 10, 2019
Merged

Fixing the Wasm blocker for Parser - try 2 #495

merged 3 commits into from
Dec 10, 2019

Conversation

anurbol
Copy link
Contributor

@anurbol anurbol commented Dec 10, 2019

Rust has a bug when compiling a project for Wasm (with --target wasm32-unknown-unknown flag), these changes are a workaround.

These changes are only supposed to fix the SWC Parser, not the whole SWC project. This is because I only need the Parser at the moment, also fixing the whole SWC Project would be a nightmare for me, a newbie in SWC. Maybe later.

@anurbol
Copy link
Contributor Author

anurbol commented Dec 10, 2019

bors r+
Edit: (Ok at least I tried lol)

@bors
Copy link
Contributor

bors bot commented Dec 10, 2019

🔒 Permission denied

Existing reviewers: click here to make anurbol a reviewer

@kdy1
Copy link
Member

kdy1 commented Dec 10, 2019

It's great enough. Note that parser is special in swc, as it should be usable from stable rust, and as an ecmascript parser. Some rust projects uses it already.

@anurbol
Copy link
Contributor Author

anurbol commented Dec 10, 2019

@kdy1 that's good to hear! I suspected that this should be the case, because the parser alone seems to be of incredible usefulness!

BTW thank you for actively responding and giving feedback 😃

@kdy1
Copy link
Member

kdy1 commented Dec 10, 2019

Can you run cargo fmt --all?

@kdy1
Copy link
Member

kdy1 commented Dec 10, 2019

I think the rustfmt error is related to alphabetical sorting.

@anurbol
Copy link
Contributor Author

anurbol commented Dec 10, 2019

Yep, it was the case. Now fixed. Do you by any chance know, is there an easier way in such situations than creating a new pull request every time?

@kdy1
Copy link
Member

kdy1 commented Dec 10, 2019

Pushing a new commit to the pr branch would update the pr.

@kdy1 kdy1 merged commit 2f4ce50 into swc-project:master Dec 10, 2019
@kdy1
Copy link
Member

kdy1 commented Dec 10, 2019

@anurbol Thank you for the pr!! I merged it.

@anurbol
Copy link
Contributor Author

anurbol commented Dec 10, 2019

Great!!! Thanks for merging, Dong Yoon (I hope it's correct)!

@kdy1
Copy link
Member

kdy1 commented Dec 10, 2019

It's correct :)

@anurbol
Copy link
Contributor Author

anurbol commented Dec 10, 2019

@kdy1 Lol, I now see https://github.com/swc-project/swc/pull/479/files#diff-b052edc95cbba2d88ad873bdb3551146 was the "culprit" :D (no blame intended)

I am not sure how renaming dependencies is a "2018 feature".

@anurbol anurbol mentioned this pull request Feb 3, 2020
@swc-project swc-project locked as resolved and limited conversation to collaborators Nov 17, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants