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

Add glob resolver plugin #5933

Merged
merged 16 commits into from
Jun 7, 2021
Merged

Add glob resolver plugin #5933

merged 16 commits into from
Jun 7, 2021

Conversation

devongovett
Copy link
Member

@devongovett devongovett commented Feb 28, 2021

Fixes #4683

This creates a @parcel/resolver-glob plugin which resolves glob specifiers. It's not currently in the default config, but can be enabled by adding it to your .parcelrc. It works identically to the Parcel v1 version for JS, and also works for CSS. In addition, it works with pipelines like url:, and also for dynamic import. See the tests for examples.

@height
Copy link

height bot commented Feb 28, 2021

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

💡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 Feb 28, 2021

Benchmark Results

Kitchen Sink ✅

Timings

Description Time Difference
Cold 1.61s +16.00ms
Cached 423.00ms +15.00ms

Cold Bundles

No bundle changes detected.

Cached Bundles

Bundle Size Difference Time Difference
dist/legacy/parcel.7cdb0fad.webp 102.94kb +0.00b 50.00ms -4.00ms 🚀
dist/modern/parcel.7cdb0fad.webp 102.94kb +0.00b 73.00ms -12.00ms 🚀
dist/legacy/index.8a81a4b4.js 2.00kb +0.00b 81.00ms -5.00ms 🚀
dist/modern/index.27bf274a.js 2.00kb +0.00b 81.00ms -5.00ms 🚀
dist/legacy/index.html 701.00b +0.00b 78.00ms -7.00ms 🚀
dist/modern/index.html 701.00b +0.00b 78.00ms -8.00ms 🚀
dist/legacy/index.8747944a.css 77.00b +0.00b 80.00ms -6.00ms 🚀
dist/modern/index.58f23b5f.css 77.00b +0.00b 79.00ms -7.00ms 🚀

React HackerNews ✅

Timings

Description Time Difference
Cold 10.66s +98.00ms
Cached 692.00ms +16.00ms

Cold Bundles

Bundle Size Difference Time Difference
dist/logo.1e014c76.png 274.00b +0.00b 5.07s +5.04s ⚠️

Cached Bundles

Bundle Size Difference Time Difference
dist/index.js 491.05kb +0.00b 82.00ms -5.00ms 🚀
dist/PermalinkedComment.4bc80878.js 4.19kb +0.00b 75.00ms -12.00ms 🚀
dist/UserProfile.f83d252c.js 1.56kb +0.00b 75.00ms -11.00ms 🚀
dist/NotFound.c41ac89d.js 417.00b +0.00b 74.00ms -13.00ms 🚀
dist/logo.1e014c76.png 274.00b +0.00b 37.00ms -11.00ms 🚀

AtlasKit Editor ✅

Timings

Description Time Difference
Cold 1.22m -1.06s
Cached 3.04s -30.00ms

Cold Bundles

Bundle Size Difference Time Difference
dist/index.1f63a786.js 2.60mb +19.00b ⚠️ 28.49s -430.00ms

Cached Bundles

Bundle Size Difference Time Difference
dist/index.b2f0c01a.js 2.60mb +23.00b ⚠️ 175.00ms +43.00ms ⚠️
dist/pdf.worker.44fcec94.js 727.98kb +0.00b 233.00ms +53.00ms ⚠️
dist/editorView.3dcbfbb6.js 594.99kb +0.00b 256.00ms +57.00ms ⚠️
dist/pdfRenderer.82551541.js 411.56kb +0.00b 233.00ms +53.00ms ⚠️
dist/popup.17ccd1a5.js 209.85kb +0.00b 246.00ms +51.00ms ⚠️
dist/EmojiPickerComponent.20874e3a.js 147.28kb +0.00b 210.00ms +39.00ms ⚠️
dist/Toolbar.3fa13ed2.js 107.27kb +0.00b 256.00ms +57.00ms ⚠️
dist/media-viewer.3fcbd92c.js 74.99kb +0.00b 233.00ms +53.00ms ⚠️
dist/card.b6f126c2.js 62.67kb +0.00b 218.00ms +40.00ms ⚠️
dist/card.3a2d0a18.js 60.71kb +0.00b 251.00ms +56.00ms ⚠️
dist/Modal.3e87c56e.js 45.33kb +0.00b 180.00ms +44.00ms ⚠️
dist/component.6e5a1db3.js 37.59kb +0.00b 178.00ms +44.00ms ⚠️
dist/esm.ca290843.js 33.24kb +0.00b 216.00ms +44.00ms ⚠️
dist/component.b19b9dfb.js 24.95kb +0.00b 218.00ms +38.00ms ⚠️
dist/DatePicker.a11f926e.js 22.99kb +0.00b 198.00ms +44.00ms ⚠️
dist/js.82b1c3de.js 17.33kb +0.00b 218.00ms +38.00ms ⚠️
dist/ui.aaca00d4.js 14.94kb +0.00b 217.00ms +39.00ms ⚠️
dist/smartMediaEditor.5a40b214.js 13.25kb +0.00b 253.00ms +54.00ms ⚠️
dist/dropzone.a68aaa3c.js 12.15kb +0.00b 248.00ms +53.00ms ⚠️
dist/workerHasher.f2448c7e.js 11.81kb +0.00b 216.00ms +38.00ms ⚠️
dist/component.4e8fd03c.js 6.82kb +0.00b 218.00ms +38.00ms ⚠️
dist/card.4cdca260.js 5.96kb +0.00b 218.00ms +38.00ms ⚠️
dist/media-viewer.32e1b94c.js 4.51kb +0.00b 233.00ms +53.00ms ⚠️
dist/media-viewer.fbbe405b.js 3.98kb +0.00b 233.00ms +53.00ms ⚠️
dist/EmojiPickerComponent.8eb4eeb5.js 3.72kb +0.00b 216.00ms +38.00ms ⚠️
dist/png-chunks-extract.1bcf0dfb.js 3.58kb +0.00b 218.00ms +38.00ms ⚠️
dist/index.9c4d3b81.css 3.46kb +0.00b 260.00ms +42.00ms ⚠️
dist/dropzone.5eca47ad.js 3.29kb +0.00b 247.00ms +52.00ms ⚠️
dist/Modal.7ade13df.js 3.15kb +0.00b 179.00ms +45.00ms ⚠️
dist/clipboard.93711a3c.js 2.93kb +0.00b 249.00ms +54.00ms ⚠️
dist/16.01abc4bb.js 2.36kb +0.00b 176.00ms +44.00ms ⚠️
dist/ResourcedEmojiComponent.a1d3f4a0.js 2.12kb +0.00b 217.00ms +39.00ms ⚠️
dist/card.d1f2beda.js 2.06kb +0.00b 234.00ms +39.00ms ⚠️
dist/date.71db3fe8.js 1.86kb +0.00b 182.00ms +44.00ms ⚠️
dist/images.d62b15bd.js 1.80kb +0.00b 184.00ms +44.00ms ⚠️
dist/feedback.9958bdd4.js 1.77kb +0.00b 197.00ms +45.00ms ⚠️
dist/16.a4c09c54.js 1.75kb +0.00b 233.00ms +53.00ms ⚠️
dist/browser.f2156b5b.js 1.69kb +0.00b 249.00ms +54.00ms ⚠️
dist/16.00df3a96.js 1.68kb +0.00b 218.00ms +38.00ms ⚠️
dist/workerHasher.c8ca1949.js 1.63kb +0.00b 216.00ms +38.00ms ⚠️
dist/workerHasher.c6d63a8c.js 1.63kb +0.00b 252.00ms +57.00ms ⚠️
dist/list-number.1094e49b.js 1.59kb +0.00b 188.00ms +46.00ms ⚠️
dist/status.01513cd7.js 1.59kb +0.00b 192.00ms +44.00ms ⚠️
dist/code.41dec3bc.js 1.51kb +0.00b 181.00ms +44.00ms ⚠️
dist/heading6.43c4a239.js 1.51kb +0.00b 196.00ms +44.00ms ⚠️
dist/heading3.86883cea.js 1.49kb +0.00b 194.00ms +44.00ms ⚠️
dist/link.cf6cf606.js 1.43kb +0.00b 188.00ms +46.00ms ⚠️
dist/16.fc05fc66.js 1.40kb +0.00b 219.00ms +39.00ms ⚠️
dist/heading5.eead537b.js 1.38kb +0.00b 195.00ms +44.00ms ⚠️
dist/emoji.209246d3.js 1.36kb +0.00b 183.00ms +44.00ms ⚠️
dist/16.c6b45ca4.js 1.35kb +0.00b 218.00ms +38.00ms ⚠️
dist/16.23ccd83c.js 1.35kb +0.00b 219.00ms +39.00ms ⚠️
dist/16.06271460.js 1.33kb +0.00b 257.00ms +77.00ms ⚠️
dist/16.04665c7c.js 1.33kb +0.00b 177.00ms +45.00ms ⚠️
dist/heading2.45d46a2f.js 1.32kb +0.00b 194.00ms +44.00ms ⚠️
dist/16.bc168422.js 1.29kb +0.00b 233.00ms +53.00ms ⚠️
dist/expand.44b4643e.js 1.29kb +0.00b 197.00ms +44.00ms ⚠️
dist/heading4.cc81126f.js 1.27kb +0.00b 195.00ms +44.00ms ⚠️
dist/16.c4b9ffab.js 1.25kb +0.00b 233.00ms +53.00ms ⚠️
dist/16.a9c08a24.js 1.22kb +0.00b 176.00ms +41.00ms ⚠️
dist/16.3be2d210.js 1.21kb +0.00b 233.00ms +53.00ms ⚠️
dist/16.c4ae24c0.js 1.20kb +0.00b 180.00ms +44.00ms ⚠️
dist/mention.bf94f359.js 1.20kb +0.00b 188.00ms +44.00ms ⚠️
dist/layout.2ab7fe1e.js 1.18kb +0.00b 185.00ms +44.00ms ⚠️
dist/Modal.41dab93a.js 1.17kb +0.00b 180.00ms +44.00ms ⚠️
dist/16.d748ad30.js 1.16kb +0.00b 233.00ms +53.00ms ⚠️
dist/heading1.e46ebd87.js 1.16kb +0.00b 193.00ms +44.00ms ⚠️
dist/16.dfa6b620.js 1.16kb +0.00b 176.00ms +44.00ms ⚠️
dist/divider.4e444466.js 1.16kb +0.00b 183.00ms +44.00ms ⚠️
dist/quote.f1661da4.js 1.15kb +0.00b 191.00ms +44.00ms ⚠️
dist/16.d91bdfc5.js 1.15kb +0.00b 218.00ms +38.00ms ⚠️
dist/16.76b33c8c.js 1.15kb +0.00b 219.00ms +39.00ms ⚠️
dist/16.2104d9ba.js 1.15kb +0.00b 233.00ms +53.00ms ⚠️
dist/16.5247c925.js 1.15kb +0.00b 218.00ms +38.00ms ⚠️
dist/action.5318380d.js 1.13kb +0.00b 180.00ms +43.00ms ⚠️
dist/component.c218dc1f.js 1.12kb +0.00b 175.00ms +43.00ms ⚠️
dist/media-card-analytics-error-boundary.e1f2c03b.js 1.12kb +0.00b 218.00ms +40.00ms ⚠️
dist/decision.12c8af60.js 1.12kb +0.00b 182.00ms +44.00ms ⚠️
dist/panel-warning.bda6bdb5.js 1.11kb +0.00b 190.00ms +44.00ms ⚠️
dist/16.9ad179a5.js 1.11kb +0.00b 175.00ms +43.00ms ⚠️
dist/list.f96161ec.js 1.08kb +0.00b 188.00ms +45.00ms ⚠️
dist/16.d102dfb8.js 1.07kb +0.00b 233.00ms +53.00ms ⚠️
dist/panel-error.02cac363.js 1.01kb +0.00b 188.00ms +44.00ms ⚠️
dist/panel.ba611692.js 1.01kb +0.00b 191.00ms +44.00ms ⚠️
dist/table.84de9360.js 1022.00b +0.00b 193.00ms +45.00ms ⚠️
dist/panel-success.c5920078.js 978.00b +0.00b 190.00ms +44.00ms ⚠️
dist/panel-note.671a06d0.js 974.00b +0.00b 189.00ms +44.00ms ⚠️
dist/media-viewer-analytics-error-boundary.b7edd41f.js 964.00b +0.00b 233.00ms +38.00ms ⚠️
dist/media-picker-analytics-error-boundary.f598f6fd.js 964.00b +0.00b 247.00ms +52.00ms ⚠️
dist/media-card-analytics-error-boundary.b22bb859.js 960.00b +0.00b 218.00ms +40.00ms ⚠️
dist/media-card-analytics-error-boundary.fb2a1470.js 960.00b +0.00b 251.00ms +56.00ms ⚠️
dist/simpleHasher.db850807.js 641.00b +0.00b 216.00ms +38.00ms ⚠️
dist/simpleHasher.660236a4.js 641.00b +0.00b 252.00ms +57.00ms ⚠️
dist/index.html 119.00b +0.00b 128.00ms +49.00ms ⚠️

Three.js ✅

Timings

Description Time Difference
Cold 7.40s -7.00ms
Cached 601.00ms -1.00ms

Cold Bundles

No bundle changes detected.

Cached Bundles

Bundle Size Difference Time Difference
dist/Three.js 579.69kb +0.00b 59.00ms -12.00ms 🚀

Click here to view a detailed benchmark overview.

@@ -220,6 +221,10 @@ export class ResolverRunner {
};
}

if (result.isAsync != null) {
dependency.isAsync = result.isAsync;
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not totally sure how I feel about mutating the dependency in the resolver, but we did it already for meta... Otherwise we'd need to move isAsync to the AssetGroup, but that's not available in the bundle graph. 😞

@josephcagle
Copy link

What is the current status on this? I am working on a project that should use url globs, and as I am relatively new to using Parcel I'm not sure of the best way to implement that.

Is this PR expected to be merged soon? For now, I am going to just load the url for each file in my directory individually.

(Is there some other plugin I should use instead for now?)

Thanks!

@TobiasSchikora
Copy link

I also need this. Would be great if it will be merged. Thanks!

@EddFigueiredo
Copy link

Need this as well, urgently

@billyzduke
Copy link

Very much anticipating this functionality. Doing "animated PNGs" in my current project, which currently involves importing each frame image separately... Loving Parcel, but being able to eliminate hundreds of lines of repetitive code would be a great boon.

@MarcosNBJ
Copy link

This PR would also benefit a lot a project I'm working on with parcel.

@RickyRomero
Copy link

We encountered the node-gyp/deasync problem in Parcel 1 (#5294), so we tried to upgrade to Parcel 2. It doesn't do glob imports, so we can't use it. This PR fixes that problem, but 3 months have passed with no activity. So we're stuck on old versions of Node and Parcel. I'd rather not have to move everything off Parcel and onto esbuild, but if this isn't fixed then I'll have to eventually.

@devongovett
Copy link
Member Author

Can you use the babel plugin in the meantime? https://github.com/devongovett/babel-plugin-transform-glob-import

I believe the current state was that there was disagreement among the core team about how dynamic import should be handled. I hope to get back to this soon.

@RickyRomero
Copy link

@devongovett Thanks, I'll give it a try.

@josephcagle
Copy link

@RickyRomero When you're done, could you let us know how it goes for you? Thanks!

@RickyRomero
Copy link

@devongovett @DarthFloopy Here's where I got following the migration guide for Parcel 2:

  1. Upgraded Parcel and added the glob resolver plugin: yarn add babel-plugin-transform-glob-import --dev
  2. Added .parcel-cache to my .gitignore
  3. Changed out-dir to dist-dir in my command flags
  4. Prepended url: to all my SVG imports (which don't use globs).

The glob imports we use are for .mp4 files. Our app's video imports look like this:

import videos from '../../../../projects-data/**/*.mp4';

Prepending url: to this glob builds the app, but results in videos being an empty object. Omitting the prefix leaves Parcel 2 finding the files, but throwing a missing transformer error for mp4 files (as it should, since I think it's trying to build the videos into the bundle and that would be silly).

Judging from what little I know about Parcel 2, it seems like I should be using the url: prefix in my video glob import, but that the proposed plugin doesn't handle the prefix. So I don't think it handles my needs at this time.

@devongovett devongovett mentioned this pull request Jun 2, 2021
@parcel-benchmark
Copy link

Benchmark Results

Kitchen Sink ✅

Timings

Description Time Difference
Cold 1.95s -20.00ms
Cached 437.00ms -3.00ms

Cold Bundles

Bundle Size Difference Time Difference
dist/legacy/parcel.d5807e82.webp 102.94kb +0.00b 857.00ms -56.00ms 🚀
dist/modern/parcel.d5807e82.webp 102.94kb +0.00b 858.00ms -56.00ms 🚀
dist/legacy/index.html 701.00b +0.00b 860.00ms -58.00ms 🚀
dist/modern/index.html 701.00b +0.00b 859.00ms -59.00ms 🚀
dist/legacy/index.c6ea0c41.css 77.00b +0.00b 925.00ms -47.00ms 🚀
dist/modern/index.c4e09d35.css 77.00b +0.00b 924.00ms -48.00ms 🚀

Cached Bundles

Bundle Size Difference Time Difference
dist/modern/parcel.d5807e82.webp 102.94kb +0.00b 81.00ms -6.00ms 🚀
dist/legacy/index.a6466710.js 2.00kb +0.00b 94.00ms +7.00ms ⚠️
dist/modern/index.4f9cafee.js 2.00kb +0.00b 93.00ms +6.00ms ⚠️

React HackerNews ✅

Timings

Description Time Difference
Cold 12.09s -120.00ms
Cached 727.00ms +29.00ms

Cold Bundles

No bundle changes detected.

Cached Bundles

Bundle Size Difference Time Difference
dist/index.js 491.15kb +0.00b 100.00ms +7.00ms ⚠️
dist/PermalinkedComment.0c75a695.js 4.19kb +0.00b 99.00ms +6.00ms ⚠️
dist/UserProfile.031c1548.js 1.56kb +0.00b 100.00ms +7.00ms ⚠️
dist/NotFound.c3254f12.js 417.00b +0.00b 100.00ms +7.00ms ⚠️
dist/logo.24c8bf9e.png 274.00b +0.00b 63.00ms +9.00ms ⚠️

AtlasKit Editor ✅

Timings

Description Time Difference
Cold 1.33m -1.71s
Cached 3.19s -80.00ms

Cold Bundles

Bundle Size Difference Time Difference
dist/index.907084b1.js 2.60mb -24.00b 🚀 30.97s -671.00ms
dist/Modal.08d13a29.js 45.31kb +15.00b ⚠️ 30.64s -924.00ms
dist/feedback.a4084b43.js 1.77kb +0.00b 32.38s -19.29s 🚀
dist/heading6.2df789d9.js 1.51kb +0.00b 32.38s -19.29s 🚀
dist/heading3.99e77e15.js 1.49kb +0.00b 32.38s -19.29s 🚀
dist/heading5.c9eff376.js 1.38kb +0.00b 32.38s -19.29s 🚀
dist/expand.c97517e7.js 1.29kb +0.00b 32.38s -19.29s 🚀
dist/heading4.a48496c5.js 1.27kb +0.00b 32.38s -19.29s 🚀

Cached Bundles

Bundle Size Difference Time Difference
dist/index.ddd01c55.js 2.60mb +5.00b ⚠️ 157.00ms -2.00ms
dist/EmojiPickerComponent.341da417.js 147.28kb +0.00b 198.00ms -21.00ms 🚀
dist/Modal.52d7298a.js 45.33kb +0.00b 255.00ms +85.00ms ⚠️
dist/esm.a6bd05fd.js 33.24kb +0.00b 199.00ms -20.00ms 🚀
dist/component.4f8e77d4.js 24.95kb +0.00b 250.00ms +77.00ms ⚠️
dist/DatePicker.1344b0c2.js 22.99kb +0.00b 185.00ms -34.00ms 🚀
dist/ui.060006b2.js 14.94kb +0.00b 207.00ms -12.00ms 🚀
dist/workerHasher.95f27d4e.js 11.81kb +0.00b 205.00ms -14.00ms 🚀
dist/component.9e1648d9.js 6.82kb +0.00b 250.00ms +77.00ms ⚠️
dist/EmojiPickerComponent.870af01b.js 3.72kb +0.00b 207.00ms -12.00ms 🚀
dist/png-chunks-extract.26a58e9e.js 3.58kb +0.00b 246.00ms +75.00ms ⚠️
dist/ResourcedEmojiComponent.425492a2.js 2.12kb +0.00b 207.00ms -12.00ms 🚀
dist/date.13837189.js 1.86kb +0.00b 165.00ms -16.00ms 🚀
dist/images.a51e31c2.js 1.80kb +0.00b 168.00ms -16.00ms 🚀
dist/feedback.a4084b43.js 1.77kb +0.00b 183.00ms -35.00ms 🚀
dist/16.b8c83009.js 1.75kb +0.00b 252.00ms +76.00ms ⚠️
dist/16.f48613ba.js 1.68kb +0.00b 251.00ms +77.00ms ⚠️
dist/workerHasher.a91c28d5.js 1.63kb +0.00b 205.00ms -14.00ms 🚀
dist/list-number.494da4e7.js 1.59kb +0.00b 170.00ms -16.00ms 🚀
dist/status.8783408d.js 1.59kb +0.00b 177.00ms -40.00ms 🚀
dist/code.677bd70c.js 1.51kb +0.00b 164.00ms -16.00ms 🚀
dist/heading6.2df789d9.js 1.51kb +0.00b 183.00ms -35.00ms 🚀
dist/heading3.99e77e15.js 1.49kb +0.00b 181.00ms -37.00ms 🚀
dist/link.eecf8ee1.js 1.43kb +0.00b 170.00ms -15.00ms 🚀
dist/16.0f105e82.js 1.40kb +0.00b 251.00ms +75.00ms ⚠️
dist/heading5.c9eff376.js 1.38kb +0.00b 182.00ms -36.00ms 🚀
dist/emoji.e0bb5bdd.js 1.36kb +0.00b 167.00ms -16.00ms 🚀
dist/16.2475b7ab.js 1.35kb +0.00b 250.00ms +76.00ms ⚠️
dist/16.24ecf6d5.js 1.35kb +0.00b 250.00ms +75.00ms ⚠️
dist/heading2.689c1725.js 1.32kb +0.00b 180.00ms -37.00ms 🚀
dist/16.f6f07bdf.js 1.29kb +0.00b 254.00ms +76.00ms ⚠️
dist/expand.c97517e7.js 1.29kb +0.00b 184.00ms -35.00ms 🚀
dist/heading4.a48496c5.js 1.27kb +0.00b 181.00ms -37.00ms 🚀
dist/16.abb96752.js 1.25kb +0.00b 252.00ms +75.00ms ⚠️
dist/16.8a916ec3.js 1.22kb +0.00b 158.00ms -8.00ms 🚀
dist/16.5ab0c52f.js 1.21kb +0.00b 253.00ms +76.00ms ⚠️
dist/mention.7513d265.js 1.20kb +0.00b 172.00ms -25.00ms 🚀
dist/layout.a2215d1e.js 1.18kb +0.00b 168.00ms -16.00ms 🚀
dist/16.dc7fba57.js 1.16kb +0.00b 252.00ms +76.00ms ⚠️
dist/heading1.53882705.js 1.16kb +0.00b 179.00ms -38.00ms 🚀
dist/divider.61f72909.js 1.16kb +0.00b 166.00ms -16.00ms 🚀
dist/quote.ac356b63.js 1.15kb +0.00b 177.00ms -40.00ms 🚀
dist/16.61848cd9.js 1.15kb +0.00b 251.00ms +76.00ms ⚠️
dist/16.f88600cd.js 1.15kb +0.00b 250.00ms +74.00ms ⚠️
dist/16.3457832f.js 1.15kb +0.00b 251.00ms +76.00ms ⚠️
dist/16.59da43e0.js 1.15kb +0.00b 250.00ms +77.00ms ⚠️
dist/action.03622130.js 1.13kb +0.00b 163.00ms -16.00ms 🚀
dist/decision.e8963abf.js 1.12kb +0.00b 165.00ms -16.00ms 🚀
dist/panel-warning.d87689fa.js 1.11kb +0.00b 175.00ms -42.00ms 🚀
dist/16.71584d67.js 1.11kb +0.00b 157.00ms -8.00ms 🚀
dist/list.452d2378.js 1.08kb +0.00b 171.00ms -25.00ms 🚀
dist/16.d79d0001.js 1.07kb +0.00b 253.00ms +75.00ms ⚠️
dist/panel-error.2d1266a1.js 1.01kb +0.00b 173.00ms -43.00ms 🚀
dist/panel.2fa2f198.js 1.01kb +0.00b 176.00ms -41.00ms 🚀
dist/table.5143dd29.js 1022.00b +0.00b 178.00ms -39.00ms 🚀
dist/panel-success.8c4cf740.js 978.00b +0.00b 174.00ms -42.00ms 🚀
dist/panel-note.aa22bfaa.js 974.00b +0.00b 173.00ms -43.00ms 🚀
dist/simpleHasher.74d2cfec.js 641.00b +0.00b 207.00ms -12.00ms 🚀

Three.js ✅

Timings

Description Time Difference
Cold 8.40s +239.00ms
Cached 622.00ms -9.00ms

Cold Bundles

No bundle changes detected.

Cached Bundles

Bundle Size Difference Time Difference
dist/Three.js 579.69kb +0.00b 71.00ms -14.00ms 🚀

Click here to view a detailed benchmark overview.

@devongovett devongovett merged commit f582ffd into v2 Jun 7, 2021
@devongovett devongovett deleted the glob-resolver branch June 7, 2021 17:31
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.

Add support for glob imports to Parcel 2
9 participants