Closed eduardoboucas closed 1 year ago
Comparing with 5c6c14a08b9d4868bd26cc989262f9e624251a4a
⬆️ 20.81% increase vs. 5c6c14a08b9d4868bd26cc989262f9e624251a4a
^ 3.7s
│ ┌──┐
│ | | 3.4s
│ 3.1s | | ┌──┐
│ ┌──┐ | | |▒▒|
│ 2.8s 2.8s 2.8s 2.7s 2.8s | | | | 2.7s 2.7s |▒▒|
│ ──┌──┐────┌──┐────┌──┐────2.6s────┌──┐────┌──┐────2.6s────┼──┼────┼──┼────┌──┐────────────┌──┐────|▒▒|──
│ | | | | | | ┌──┐ | | | | ┌──┐ | | | | | | 2.4s | | |▒▒|
│ | | | | | | | | | | | | | | | | | | | | ┌──┐ | | |▒▒|
│ | | | | | | | | | | | | | | | | | | | | | | | | |▒▒|
│ | | | | | | | | | | | | | | | | | | | | | | | | |▒▒|
│ | | | | | | | | | | | | | | | | | | | | | | | | |▒▒|
│ | | | | | | | | | | | | | | | | | | | | | | | | |▒▒|
│ | | | | | | | | | | | | | | | | | | | | | | | | |▒▒|
│ | | | | | | | | | | | | | | | | | | | | | | | | |▒▒|
│ | | | | | | | | | | | | | | | | | | | | | | | | |▒▒|
│ | | | | | | | | | | | | | | | | | | | | | | | | |▒▒|
│ | | | | | | | | | | | | | | | | | | | | | | | | |▒▒|
│ | | | | | | | | | | | | | | | | | | | | | | | | |▒▒|
│ | | | | | | | | | | | | | | | | | | | | | | | | |▒▒|
│ | | | | | | | | | | | | | | | | | | | | | | | | |▒▒|
│ | | | | | | | | | | | | | | | | | | | | | | | | |▒▒|
└───┴──┴────┴──┴────┴──┴────┴──┴────┴──┴────┴──┴────┴──┴────┴──┴────┴──┴────┴──┴────┴──┴────┴──┴────┴──┴──>
T-12 T-11 T-10 T-9 T-8 T-7 T-6 T-5 T-4 T-3 T-2 T-1 T
⬆️ 30.50% increase vs. 5c6c14a08b9d4868bd26cc989262f9e624251a4a
^ 12.1s
│ ┌──┐ 11.5s
│ | | ┌──┐
│ 10.1s | | |▒▒|
│ ┌──┐ | | |▒▒|
│ | | | | |▒▒|
│ ──8.2s────8.3s────8.7s────────────8.5s────8.3s────────────┼──┼────┼──┼────8.3s────────────────────|▒▒|──
│ ┌──┐ ┌──┐ ┌──┐ 7.6s ┌──┐ ┌──┐ 8.1s | | | | ┌──┐ 8s |▒▒|
│ | | | | | | ┌──┐ | | | | ┌──┐ | | | | | | 7.5s ┌──┐ |▒▒|
│ | | | | | | | | | | | | | | | | | | | | ┌──┐ | | |▒▒|
│ | | | | | | | | | | | | | | | | | | | | | | | | |▒▒|
│ | | | | | | | | | | | | | | | | | | | | | | | | |▒▒|
│ | | | | | | | | | | | | | | | | | | | | | | | | |▒▒|
│ | | | | | | | | | | | | | | | | | | | | | | | | |▒▒|
│ | | | | | | | | | | | | | | | | | | | | | | | | |▒▒|
│ | | | | | | | | | | | | | | | | | | | | | | | | |▒▒|
│ | | | | | | | | | | | | | | | | | | | | | | | | |▒▒|
│ | | | | | | | | | | | | | | | | | | | | | | | | |▒▒|
│ | | | | | | | | | | | | | | | | | | | | | | | | |▒▒|
│ | | | | | | | | | | | | | | | | | | | | | | | | |▒▒|
│ | | | | | | | | | | | | | | | | | | | | | | | | |▒▒|
│ | | | | | | | | | | | | | | | | | | | | | | | | |▒▒|
└───┴──┴────┴──┴────┴──┴────┴──┴────┴──┴────┴──┴────┴──┴────┴──┴────┴──┴────┴──┴────┴──┴────┴──┴────┴──┴──>
T-12 T-11 T-10 T-9 T-8 T-7 T-6 T-5 T-4 T-3 T-2 T-1 T
⬆️ 22.47% increase vs. 5c6c14a08b9d4868bd26cc989262f9e624251a4a
^ 22.4s
│ ┌──┐
│ | | 20.3s
│ 19.3s | | ┌──┐
│ ┌──┐ | | |▒▒|
│ 16.4s | | | | |▒▒|
│ ─15.8s───16.1s────┌──┐───────────16.1s───15.9s───15.5s────┼──┼────┼──┼───15.7s───────────15.7s────|▒▒|──
│ ┌──┐ ┌──┐ | | 14.8s ┌──┐ ┌──┐ ┌──┐ | | | | ┌──┐ 14.4s ┌──┐ |▒▒|
│ | | | | | | ┌──┐ | | | | | | | | | | | | ┌──┐ | | |▒▒|
│ | | | | | | | | | | | | | | | | | | | | | | | | |▒▒|
│ | | | | | | | | | | | | | | | | | | | | | | | | |▒▒|
│ | | | | | | | | | | | | | | | | | | | | | | | | |▒▒|
│ | | | | | | | | | | | | | | | | | | | | | | | | |▒▒|
│ | | | | | | | | | | | | | | | | | | | | | | | | |▒▒|
│ | | | | | | | | | | | | | | | | | | | | | | | | |▒▒|
│ | | | | | | | | | | | | | | | | | | | | | | | | |▒▒|
│ | | | | | | | | | | | | | | | | | | | | | | | | |▒▒|
│ | | | | | | | | | | | | | | | | | | | | | | | | |▒▒|
│ | | | | | | | | | | | | | | | | | | | | | | | | |▒▒|
│ | | | | | | | | | | | | | | | | | | | | | | | | |▒▒|
│ | | | | | | | | | | | | | | | | | | | | | | | | |▒▒|
│ | | | | | | | | | | | | | | | | | | | | | | | | |▒▒|
└───┴──┴────┴──┴────┴──┴────┴──┴────┴──┴────┴──┴────┴──┴────┴──┴────┴──┴────┴──┴────┴──┴────┴──┴────┴──┴──>
T-12 T-11 T-10 T-9 T-8 T-7 T-6 T-5 T-4 T-3 T-2 T-1 T
Summary
This PR has 3 small changes made separately in the following commits:
https://github.com/netlify/zip-it-and-ship-it/commit/c52807a4a04e329313bbd83f3bb9971fc29d3274 + https://github.com/netlify/zip-it-and-ship-it/pull/1589/commits/802e351c15756436af42a4fc67a4d62f797a68c1: A new
outputModuleFormat
is added to the function objects returned by zip-it-and-ship-it, containing the module format that the function must run as (cjs
oresm
)https://github.com/netlify/zip-it-and-ship-it/commit/d1b747c3678245a86e0f4855254faef32fb31e24: The
inputs
array in the returned function objects contains the list of paths that acted as inputs to the output function. This is used by the CLI to know which files it needs to watch and associate with each function. Since https://github.com/netlify/zip-it-and-ship-it/pull/1584, we're bundling some of the files together, but the originating files still need to be part ofinputs
.https://github.com/netlify/zip-it-and-ship-it/commit/c0be11ca9c7dbf6c3fce5032d10b49926831469d: We're forcing the bundler to NFT in V2 functions, since that's the only bundler that is optimised for this flow, and we don't want people manually configuring bundlers anymore. We still allow the
none
bundler, in case users (or integrations) want to take over the bundling process.https://github.com/netlify/zip-it-and-ship-it/pull/1589/commits/4d6cae358ebfac14ed726b44c05fcc73a4467f11: Adds a shim that makes
require
,__dirname
, and__filename
available when bundling local imports to ESM.