pastelsky / bundlephobia

🏋️ Find out the cost of adding a new frontend dependency to your project
https://bundlephobia.com
MIT License
8.92k stars 221 forks source link

aws-sdk/client-s3 fails to minify #742

Open seekayel opened 1 year ago

seekayel commented 1 year ago

Type

Bug

Package name

@aws-sdk/client-s3@3.226.0

Entire error (stringified) I see in my browser console

{
    "code": "MinifyError",
    "message": "We could not minify one of the source files in this package or its dependencies. Please verify if the contents of <code>0</code> can be minified using <a href=\"https://try.terser.org/\" target=\"_blank\">terser</a>.",
    "details": {
        "originalError": "{\n  \"name\": \"SyntaxError\",\n  \"message\": \"Unexpected token: name (aws)\",\n  \"filename\": \"0\",\n  \"line\": 1,\n  \"col\": 12,\n  \"pos\": 12\n}"
    }
}
{ "name": "SyntaxError", "message": "Unexpected token: name (aws)", "filename": "0", "line": 1, "col": 12, "pos": 12 }

Description

We depend on the AWS S3 client. I'm not sure if the bug lies in that package or in the minify-er code.