Skip to content

Errors swallowed in watch mode #1

Closed
@paulcpederson

Description

@paulcpederson

Say you have a JavaScript file named gloob.js with an invalid syntax like:

var gloob = hello())

If you run simplifyify gloob.js it correctly reports the error and exits.

If, however, you run simplifyify gloob.js -w. When you save the file and introduce this error, it simply reports that the file is changed. The error is not reported. The output bundle file will be blank, but nothing indicates that there was an error.

I did a bit of poking around and it seems that the error event is not firing in bin/simplifyify.js or in lib/index.js. Perhaps it is being swallowed in write-bundles.js?

I could try writing a failing test for this and submitting a pr if that would help. I'm not super experienced with chai, but I could probably figure it out.

Oh, and also simplifyify is pretty awesome. 👍

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions