Skip to content

feat: add build-dir flag #182

Open
AlexanderKaran wants to merge 13 commits intoe18e:mainfrom
AlexanderKaran:core-js
Open

feat: add build-dir flag #182
AlexanderKaran wants to merge 13 commits intoe18e:mainfrom
AlexanderKaran:core-js

Conversation

@AlexanderKaran
Copy link
Contributor

Moved my hacky version of detecting CoreJS into the CLI. Will only check build folder if you pass in a flag for now. Example output from testing a package from the framework tracker:

⏺ {
    "stats": {
      "name": "starter-next-js",
      "version": "0.1.0",
      "dependencyCount": {
        "production": 3,
        "development": 6
      },
      "extraStats": [
        {
          "name": "duplicateDependencyCount",
          "value": 12,
          "label": "Duplicate Dependency Count"
        },
        {
          "name": "vendoredPolyfillSize",
          "label": "Vendored Polyfill Size",
          "value": 112594
        }
      ],
      "installSize": 623096777
    },
    "messages": [
      {
        "severity": "suggestion",
        "score": 0,
        "message": "The package does not specify the \"type\" field. Node.js may attempt to detect the package type causing a small performance hit. Consider adding \"type\": \"commonjs\"."
      },
      ... (12 duplicate dependency warnings) ...
      {
        "severity": "warning",
        "score": 0,
        "message": "Vendored core-js 3.38.1 detected in .next/static/chunks/a6dad97d9634a72d.js (110.0 KB). This bundle includes 534 polyfills, of which 255 are unnecessary for modern browsers. Consider using a targeted polyfill
  strategy or removing core-js from your build."
      }
    ]
  }

@pkg-pr-new
Copy link

pkg-pr-new bot commented Mar 7, 2026

Open in StackBlitz

npm i https://pkg.pr.new/@e18e/cli@182

commit: 3120754

Copy link
Collaborator

@dreyfus92 dreyfus92 left a comment

Choose a reason for hiding this comment

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

awesome job @AlexanderKaran 😄 left a few comments

@dreyfus92 dreyfus92 changed the title Core JS feat: add build-dir flag Mar 7, 2026
@dreyfus92
Copy link
Collaborator

dreyfus92 commented Mar 7, 2026

cc. @43081j 👀

AlexanderKaran and others added 5 commits March 7, 2026 12:12
Co-authored-by: paul valladares <85648028+dreyfus92@users.noreply.github.com>
Copy link
Collaborator

@dreyfus92 dreyfus92 left a comment

Choose a reason for hiding this comment

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

Thank you Alex 😄

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.

3 participants