Skip to content
This repository was archived by the owner on Aug 14, 2025. It is now read-only.
This repository was archived by the owner on Aug 14, 2025. It is now read-only.

Failed to minify ImageHelper.js #32

@Bradley-Morris

Description

@Bradley-Morris

I'm using the Preload package in my app , I use webpack to bundle and minify everything using the HtmlWebpackPlugin with minifyjs set to true. When I build the project with this package installed I get the following error:

Failed to minify the code from this file:

    ./node_modules/react-preload/lib/ImageHelper.js:3

Any hints as to how I could solve this?

It appears that it isn't transpiled to ES5. According to the following link:

https://github.com/facebook/create-react-app/blob/master/packages/react-scripts/template/README.md#npm-run-build-fails-to-minify

I'll try create a transpiled version.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions