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

Generate codeframe positions for JSON5 #7933

Merged
merged 2 commits into from Apr 20, 2022
Merged

Generate codeframe positions for JSON5 #7933

merged 2 commits into from Apr 20, 2022

Conversation

mischnic
Copy link
Member

@mischnic mischnic commented Apr 10, 2022

Using https://github.com/mischnic/json-sourcemap

Closes #6921
Closes #7902

One downside is that the lezer parser generator is rather large: https://packagephobia.com/result?p=@mischnic/json-sourcemap. I might try to use a different one

@parcel-benchmark
Copy link

parcel-benchmark commented Apr 10, 2022

Benchmark Results

Kitchen Sink 🚨

Timings

Description Time Difference
Cold FAILED -0.00ms
Cached FAILED -0.00ms

Cold Bundles

No bundles found, this is probably a failed build...

Cached Bundles

No bundles found, this is probably a failed build...

React HackerNews ✅

Timings

Description Time Difference
Cold 11.16s +66.00ms
Cached 501.00ms -12.00ms

Cold Bundles

No bundle changes detected.

Cached Bundles

No bundle changes detected.

AtlasKit Editor 🚨

Timings

Description Time Difference
Cold FAILED -0.00ms
Cached FAILED -0.00ms

Cold Bundles

No bundles found, this is probably a failed build...

Cached Bundles

No bundles found, this is probably a failed build...

Three.js ✅

Timings

Description Time Difference
Cold 7.95s +78.00ms
Cached 337.00ms +13.00ms

Cold Bundles

No bundle changes detected.

Cached Bundles

No bundle changes detected.

Click here to view a detailed benchmark overview.

@mischnic
Copy link
Member Author

One downside is that the lezer parser generator is rather large: packagephobia.com/result?p=@mischnic/json-sourcemap. I might try to use a different one

Actually, it's "only" an additional 300kb because we already use json5 anyway.

Bildschirmfoto 2022-04-13 um 20 56 01

@devongovett devongovett merged commit 7d92d81 into v2 Apr 20, 2022
@devongovett devongovett deleted the json5-sourcemap branch April 20, 2022 13:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants