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

Really no sourcemaps #4528

Merged
merged 4 commits into from
Apr 30, 2020
Merged

Really no sourcemaps #4528

merged 4 commits into from
Apr 30, 2020

Conversation

mischnic
Copy link
Member

@mischnic mischnic commented Apr 24, 2020

↪️ Pull Request

Closes #4390

Previously, we relied on plugins to not return sourcemaps if target.sourceMap is false.
But the non-hoisting JSPackager without running TerserOptimizer afterwards would still emit a sourcemap and therefore write a sourcemap file to dist despite of --no-source-maps

Question

Sourcemaps can be specified per target, but they are only accessible on PluginOptions (a boolean from the cli flag) and on Target (the actual settings object). So it would make sense to remove it from the PluginOptions and put them on Target only (and normalizing the value in the target resolver), but then transformers wouldn't know if sourcemaps are enabled.

@height
Copy link

height bot commented Apr 24, 2020

Link Height tasks by mentioning a task ID in the pull request title or description, commit messages, or comments.

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 Apr 24, 2020

Benchmark Results

Kitchen Sink ✅

Timings

Description Time Difference
Cold 5.67s -116.00ms
Cached 2.09s +105.00ms ⚠️

Cold Bundles

Bundle Size Difference Time Difference
dist/legacy/parcel.d5807e82.webp 102.94kb +0.00b 209.00ms -50.00ms 🚀
dist/modern/parcel.d5807e82.webp 102.94kb +0.00b 210.00ms -48.00ms 🚀
dist/legacy/kitchen-sink.679578a5.js 1.16kb +0.00b 1.32s -130.00ms 🚀
dist/modern/kitchen-sink.90de237b.js 1.16kb +0.00b 527.00ms -927.00ms 🚀
dist/legacy/index.html 709.00b +0.00b 1.26s +679.00ms ⚠️
dist/modern/index.html 709.00b +0.00b 1.25s +678.00ms ⚠️
dist/modern/styles.cda8c91b.css 78.00b +0.00b 1.15s -194.00ms 🚀

Cached Bundles

Bundle Size Difference Time Difference
dist/legacy/kitchen-sink.679578a5.js 1.16kb +0.00b 394.00ms +74.00ms ⚠️
dist/modern/kitchen-sink.90de237b.js 1.16kb +0.00b 392.00ms +72.00ms ⚠️
dist/legacy/index.html 709.00b +0.00b 396.00ms +74.00ms ⚠️
dist/modern/index.html 709.00b +0.00b 392.00ms +72.00ms ⚠️
dist/legacy/styles.afb8e31a.css 78.00b +0.00b 395.00ms +74.00ms ⚠️
dist/modern/styles.cda8c91b.css 78.00b +0.00b 392.00ms +72.00ms ⚠️

React HackerNews ✅

Timings

Description Time Difference
Cold 8.76s +212.00ms
Cached 2.05s -106.00ms 🚀

Cold Bundles

Bundle Size Difference Time Difference
dist/main/index.js 66.80kb +0.00b 1.95s +107.00ms ⚠️
dist/module/index.js 37.47kb +0.00b 1.95s +106.00ms ⚠️

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 x4 🚨

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...

Click here to view a detailed benchmark overview.

@mischnic mischnic marked this pull request as draft April 24, 2020 16:16
@mischnic mischnic force-pushed the really-no-sourcemaps branch 2 times, most recently from 1e9bdf6 to 8576c40 Compare April 29, 2020 22:40
@mischnic mischnic marked this pull request as ready for review April 29, 2020 22:48
@mischnic mischnic force-pushed the really-no-sourcemaps branch 5 times, most recently from 7f80a0a to 02c5656 Compare April 30, 2020 08:39
@mischnic mischnic merged commit e63c77c into v2 Apr 30, 2020
@mischnic mischnic deleted the really-no-sourcemaps branch April 30, 2020 17:10
mischnic added a commit that referenced this pull request Apr 30, 2020
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.

Parcel 2 (latest nightly) generates a .map file with --no-source-maps.
3 participants