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

Apply sourcemap in @parcel/transformer-typescript-tsc #7287

Merged
merged 3 commits into from
Nov 14, 2021
Merged

Conversation

mischnic
Copy link
Member

@mischnic mischnic commented Nov 11, 2021

↪️ Pull Request

Previously, no sourcemap was applied when using the TSC transformer.

This certainly solve the problem for the situation in this comment #6847 (comment) by @MirekPapirnik

Not sure if it fixes the original problem in that issue though (@bhellema @devongovett).

@height
Copy link

height bot commented Nov 11, 2021

Link Height tasks by mentioning a task ID in the pull request title or commit messages, or description and comments with the keyword link (e.g. "Link T-123").

💡Tip: You can also use "Close T-X" to automatically close a task when the pull request is merged.

@parcel-benchmark
Copy link

parcel-benchmark commented Nov 11, 2021

Benchmark Results

Kitchen Sink ✅

Timings

Description Time Difference
Cold 2.34s -49.00ms
Cached 320.00ms +3.00ms

Cold Bundles

Bundle Size Difference Time Difference
dist/legacy/parcel.7cdb0fad.webp 102.94kb +0.00b 95.00ms -550.00ms 🚀
dist/legacy/parcel.7cdb0fad.webp 102.94kb +0.00b 96.00ms -549.00ms 🚀
dist/modern/parcel.7cdb0fad.webp 102.94kb +0.00b 95.00ms -550.00ms 🚀

Cached Bundles

Bundle Size Difference Time Difference
dist/legacy/parcel.7cdb0fad.webp 102.94kb +0.00b 688.00ms -53.00ms 🚀
dist/legacy/parcel.7cdb0fad.webp 102.94kb +0.00b 689.00ms -53.00ms 🚀
dist/modern/parcel.7cdb0fad.webp 102.94kb +0.00b 689.00ms -52.00ms 🚀
dist/legacy/index.96016b08.js 1.59kb +0.00b 994.00ms -82.00ms 🚀
dist/legacy/index.8aaa89c9.js 1.20kb +0.00b 995.00ms -81.00ms 🚀
dist/modern/index.6be20f01.js 1.13kb +0.00b 994.00ms -82.00ms 🚀
dist/legacy/index.html 826.00b +0.00b 1.18s -73.00ms 🚀
dist/modern/index.html 749.00b +0.00b 1.18s -74.00ms 🚀
dist/legacy/index.c1bc86aa.css 94.00b +0.00b 1.33s -67.00ms 🚀

React HackerNews ✅

Timings

Description Time Difference
Cold 11.73s -258.00ms
Cached 528.00ms +29.00ms ⚠️

Cold Bundles

No bundle changes detected.

Cached Bundles

No bundle changes detected.

AtlasKit Editor ✅

Timings

Description Time Difference
Cold 1.29m +555.00ms
Cached 1.82s -14.00ms

Cold Bundles

No bundle changes detected.

Cached Bundles

Bundle Size Difference Time Difference
dist/pdfRenderer.c01d9dc8.js 1.11mb +0.00b 1.02m +3.70s ⚠️
dist/index.f0cb9522.js 693.77kb +0.00b 1.02m +3.70s ⚠️
dist/editorView.af442747.js 594.92kb +0.00b 1.02m +3.69s ⚠️
dist/popup.64bc9a82.js 209.67kb +0.00b 1.02m +3.69s ⚠️
dist/index.87a1d973.js 145.62kb +0.00b 1.02m +3.70s ⚠️
dist/Toolbar.e3ba4416.js 107.23kb +0.00b 1.02m +3.69s ⚠️
dist/media-viewer.d950776f.js 74.93kb +0.00b 1.02m +3.70s ⚠️
dist/card.8ef34b4f.js 62.67kb +0.00b 1.02m +3.69s ⚠️
dist/card.41e5c61a.js 60.71kb +0.00b 1.02m +3.70s ⚠️
dist/Modal.cd71eaf3.js 45.33kb +0.00b 1.02m +3.69s ⚠️
dist/js.660b75db.js 17.25kb +0.00b 45.38s +2.69s ⚠️
dist/ui.5d3f7adc.js 14.94kb +0.00b 1.02m +3.70s ⚠️
dist/smartMediaEditor.48c8cf63.js 13.25kb +0.00b 1.02m +3.69s ⚠️
dist/dropzone.e0209bf8.js 12.15kb +0.00b 1.02m +3.69s ⚠️
dist/workerHasher.11b8f69d.js 11.83kb +0.00b 45.39s +2.70s ⚠️
dist/index.891221ad.js 6.18kb +0.00b 1.02m +3.70s ⚠️
dist/card.26823fa1.js 5.77kb +0.00b 1.02m +3.69s ⚠️
dist/media-viewer.a19e03bf.js 4.50kb +0.00b 45.38s +2.69s ⚠️
dist/media-viewer.21624a99.js 3.93kb +0.00b 45.38s +2.69s ⚠️
dist/EmojiPickerComponent.0482d6c0.js 3.73kb +0.00b 1.02m +3.71s ⚠️
dist/png-chunks-extract.5c9c0fb9.js 3.58kb +0.00b 45.38s +2.69s ⚠️
dist/index.c6306681.css 3.47kb +0.00b 1.02m +3.69s ⚠️
dist/dropzone.55bef257.js 3.29kb +0.00b 1.02m +3.69s ⚠️
dist/Modal.ecafad9e.js 3.15kb +0.00b 1.02m +3.69s ⚠️
dist/clipboard.df70240c.js 2.93kb +0.00b 1.02m +3.69s ⚠️
dist/ResourcedEmojiComponent.667554b4.js 2.12kb +0.00b 1.02m +3.70s ⚠️
dist/card.47672f0e.js 2.04kb +0.00b 45.38s +2.69s ⚠️
dist/browser.4e039ed7.js 1.69kb +0.00b 1.02m +3.69s ⚠️
dist/workerHasher.14be1ebc.js 1.63kb +0.00b 1.02m +3.70s ⚠️
dist/Modal.ca6d4d94.js 1.16kb +0.00b 45.39s +2.70s ⚠️
dist/media-card-analytics-error-boundary.c718a9a7.js 1.12kb +0.00b 1.02m +3.69s ⚠️
dist/media-picker-analytics-error-boundary.8b2547e5.js 966.00b +0.00b 1.02m +3.69s ⚠️
dist/media-viewer-analytics-error-boundary.c928a889.js 966.00b +0.00b 1.02m +3.70s ⚠️
dist/media-card-analytics-error-boundary.30f51dac.js 962.00b +0.00b 1.02m +3.69s ⚠️
dist/media-card-analytics-error-boundary.6e65cc90.js 962.00b +0.00b 1.02m +3.70s ⚠️
dist/simpleHasher.fc0d6100.js 643.00b +0.00b 1.02m +3.71s ⚠️
dist/simpleHasher.57fb325c.js 643.00b +0.00b 1.02m +3.70s ⚠️
dist/index.html 386.00b +0.00b 1.02m +3.72s ⚠️

Three.js ✅

Timings

Description Time Difference
Cold 7.88s -70.00ms
Cached 436.00ms +6.00ms

Cold Bundles

No bundle changes detected.

Cached Bundles

No bundle changes detected.

Click here to view a detailed benchmark overview.

@mischnic mischnic merged commit 8928430 into v2 Nov 14, 2021
@mischnic mischnic deleted the sourcemap-tsc branch November 14, 2021 16:47
lettertwo added a commit that referenced this pull request Nov 15, 2021
* v2: (68 commits)
  Fix RangeError in `not export` error with other file type (#7295)
  Apply sourcemap in @parcel/transformer-typescript-tsc (#7287)
  Fix side effects glob matching (#7288)
  Fix changelog headings
  v2.0.1
  Changelog for v2.0.1
  Resolve GLSL relative to the importer, not the asset (#7263)
  fix: add @parcel/diagnostic as dependency of @parcel/transformer-typescript-types (#7248)
  Fixed missing "Parcel" export member in Module "@parcel/core" (#7250)
  Add script to sync engines with core version (#7207)
  Bump swc (#7216)
  Make Webpack loader detection regex dramatically faster (#7226)
  swc optimizer (#7212)
  Update esbuild in optimizer (#7233)
  Properly visit member expressions (#7228)
  Update to prettier 2 (#7209)
  Fix serve mode with target override and target source fields (#7187)
  Update package.json to include the repository (#7184)
  fix #6730: add transformer-raw as dependency of config-webextension (#7193)
  Log warning instead of crash if image optimizer fails (#7119)
  ...
lettertwo added a commit that referenced this pull request Nov 15, 2021
* v2:
  Fix RangeError in `not export` error with other file type (#7295)
  Apply sourcemap in @parcel/transformer-typescript-tsc (#7287)
  Fix side effects glob matching (#7288)
  Fix changelog headings
  v2.0.1
  Changelog for v2.0.1
  Resolve GLSL relative to the importer, not the asset (#7263)
  fix: add @parcel/diagnostic as dependency of @parcel/transformer-typescript-types (#7248)
  Fixed missing "Parcel" export member in Module "@parcel/core" (#7250)
lettertwo added a commit that referenced this pull request Nov 15, 2021
* v2: (68 commits)
  Fix RangeError in `not export` error with other file type (#7295)
  Apply sourcemap in @parcel/transformer-typescript-tsc (#7287)
  Fix side effects glob matching (#7288)
  Fix changelog headings
  v2.0.1
  Changelog for v2.0.1
  Resolve GLSL relative to the importer, not the asset (#7263)
  fix: add @parcel/diagnostic as dependency of @parcel/transformer-typescript-types (#7248)
  Fixed missing "Parcel" export member in Module "@parcel/core" (#7250)
  Add script to sync engines with core version (#7207)
  Bump swc (#7216)
  Make Webpack loader detection regex dramatically faster (#7226)
  swc optimizer (#7212)
  Update esbuild in optimizer (#7233)
  Properly visit member expressions (#7228)
  Update to prettier 2 (#7209)
  Fix serve mode with target override and target source fields (#7187)
  Update package.json to include the repository (#7184)
  fix #6730: add transformer-raw as dependency of config-webextension (#7193)
  Log warning instead of crash if image optimizer fails (#7119)
  ...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants