refactor(nx-plugin): explicit import extensions [DO NOT MERGE]
Code PushUp
๐คจ Code PushUp report has both improvements and regressions โ compared current commit 4bacdaa925efff9829d8c4ba2921fcae8e82484e with previous commit c677fa25e8d9fd3cb4a58d42674b9f1ff5a5cf88.
๐ต๏ธ See full comparison in Code PushUp portal ๐
๐ท๏ธ Categories
| ๐ท๏ธ Category | โญ Previous score | โญ Current score | ๐ Score change |
|---|---|---|---|
| Performance | ๐ก 55 | ๐ด 50 | |
| Code coverage | ๐ข 91 | ๐ข 90 | |
| Documentation | ๐ด 23 | ๐ด 23 | |
| Security | ๐ก 75 | ๐ก 75 | โ |
| Updates | ๐ก 77 | ๐ก 77 | โ |
| Accessibility | ๐ข 92 | ๐ข 92 | โ |
| Best Practices | ๐ข 100 | ๐ข 100 | โ |
| SEO | ๐ก 61 | ๐ก 61 | โ |
| Bug prevention | ๐ข 100 | ๐ข 100 | โ |
| Code style | ๐ข 100 | ๐ข 100 | โ |
๐ 3 groups regressed, ๐ 1 audit improved, ๐ 9 audits regressed, 10 audits changed without impacting score
๐๏ธ Groups
| ๐ Plugin | ๐๏ธ Group | โญ Previous score | โญ Current score | ๐ Score change |
|---|---|---|---|---|
| Lighthouse | Performance | ๐ก 55 | ๐ด 50 | |
| Code coverage | Code coverage metrics | ๐ข 91 | ๐ข 90 | |
| JSDoc coverage | Documentation coverage | ๐ด 23 | ๐ด 23 |
15 other groups are unchanged.
๐ก๏ธ Audits
| ๐ Plugin | ๐ก๏ธ Audit | ๐ Previous value | ๐ Current value | ๐ Value change |
|---|---|---|---|---|
| Lighthouse | Speed Index | ๐จ 4.8ย s | ๐ฅ 7.7ย s | |
| Lighthouse | Time to Interactive | ๐ฅ 12.7ย s | ๐ฅ 17.5ย s | |
| Lighthouse | Total Blocking Time | ๐ฅ 2,590ย ms | ๐ฅ 9,530ย ms | |
| Lighthouse | Largest Contentful Paint | ๐จ 3.5ย s | ๐จ 3.4ย s | |
| Lighthouse | First Contentful Paint | ๐จ 2.8ย s | ๐จ 2.8ย s | |
| Code coverage | Function coverage | ๐ฉ 93 % | ๐ฉ 92.8 % | |
| Code coverage | Line coverage | ๐จ 90 % | ๐จ 89.8 % | |
| Code coverage | Branch coverage | ๐จ 85.9 % | ๐จ 85.8 % | |
| JSDoc coverage | Types coverage | ๐ฅ 210 undocumented types | ๐ฅ 212 undocumented types | |
| JSDoc coverage | Functions coverage | ๐ฅ 451 undocumented functions | ๐ฅ 452 undocumented functions | |
| Lighthouse | Minimizes main-thread work | ๐ฅ 11.8ย s | ๐ฅ 24.0ย s | |
| Lighthouse | JavaScript execution time | ๐ฅ 6.1ย s | ๐ฅ 10.8ย s | |
| Lighthouse | Metrics | ๐ฉ 100% | ๐ฉ 100% | |
| Lighthouse | Avoids enormous network payloads | ๐ฉ Total size was 1,828ย KiB | ๐ฉ Total size was 1,832ย KiB | |
| Lighthouse | Max Potential First Input Delay | ๐ฅ 1,850ย ms | ๐ฅ 3,410ย ms | |
| Lighthouse | Uses efficient cache policy on static assets | ๐จ 27 resources found | ๐จ 27 resources found | |
| Lighthouse | Initial server response time was short | ๐ฉ Root document took 440ย ms | ๐ฉ Root document took 360ย ms | |
| Lighthouse | Eliminate render-blocking resources | ๐ฅ Potential savings of 810ย ms | ๐ฅ Potential savings of 800ย ms | |
| Lighthouse | Network Round Trip Times | ๐ฉ 20ย ms | ๐ฉ 20ย ms | |
| Lighthouse | Server Backend Latencies | ๐ฉ 120ย ms | ๐ฉ 120ย ms |
576 other audits are unchanged.
@matejchalk we ran into the same error. What was the fix to not remove .js from all imports?
we ran into the same error. What was the fix to not remove .js from all imports?
It's been a while, so I don't really remember the context. What's the error you're getting? Looks like in ba918503a2216d3b89f943f01893d1a34eaf2812 I just added .js extension to all imports in nx-plugin (compatible with both CJS and ESM) to check that all tests pass, so I don't think I encountered any errors.