Skip to content

Webpack UglifyJs plugin breaks the bundle  #84

@pekala

Description

@pekala

When using the styleguidist build functionality, I get the following error in the browser console:

bundle.js:26 Uncaught TypeError: Cannot read property 'name' of undefined

I did some investigation, and it seems to be caused by the UglifyJsPlugin used in the webpack "production" config. Removing it solves the problem (also, increases the bundle size 3 times). It's quite hard to debug what is the actual problem in the minified bundle though.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions