Closed eduardoboucas closed 1 year ago
Comparing with 1ea5222b0723885c908642390253f9496f378d5f
⬇️ 2.05% decrease vs. 1ea5222b0723885c908642390253f9496f378d5f
^ 3.7s
│ ┌──┐
│ | |
│ 3.1s | |
│ ┌──┐ | |
│ 2.8s 2.8s 2.7s 2.8s | | | | 2.7s 2.7s
│ ──┌──┐────┌──┐────2.6s────┌──┐────┌──┐────2.6s────┼──┼────┼──┼────┌──┐────────────┌──┐────2.6s────2.5s──
│ | | | | ┌──┐ | | | | ┌──┐ | | | | | | 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
⬇️ 2.12% decrease vs. 1ea5222b0723885c908642390253f9496f378d5f
^ 12.1s
│ ┌──┐
│ | |
│ 10.1s | |
│ ┌──┐ | |
│ | | | |
│ 8.3s 8.7s 8.5s 8.3s | | | | 8.3s
│ ──┌──┐────┌──┐────7.6s────┌──┐────┌──┐────8.1s────┼──┼────┼──┼────┌──┐─────────────8s─────7.7s────7.6s──
│ | | | | ┌──┐ | | | | ┌──┐ | | | | | | 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
⬆️ 1.03% increase vs. 1ea5222b0723885c908642390253f9496f378d5f
^ 22.4s
│ ┌──┐
│ | |
│ 19.3s | |
│ ┌──┐ | |
│ 16.4s | | | |
│ ─16.1s────┌──┐───────────16.1s───15.9s───15.5s────┼──┼────┼──┼───15.7s───────────15.7s───15.1s───15.3s──
│ ┌──┐ | | 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
hard to understand the full context often as the codebase lacks a lot of documentation sadly on what properties are or what they should do
What parts of the codebase do you feel are lacking documentation?
After discussing with @lukasholzer, we're not sure this is still needed in its current form. I still think some of the cleaning up we're doing here would be great to land, so I'm moving to draft until I have time to pick this up again.
Summary
Adds support for CommonJS syntax when authoring V2 functions, including support for the
config
object in CJS.It also adds a new
inputModuleFormat
property that containscjs
oresm
based on the syntax used to author the function (which may differ from the module format that is actually generated, represented byoutputModuleFormat
from https://github.com/netlify/zip-it-and-ship-it/pull/1589).Most of the PR is actually a cleanup around ISC and the static analysis code. I've added some inline comments that will hopefully make it easier to review, but feel free to ask anything that isn't clear.