Browserify Plugin - Unable to catch errors

Open
#20 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
35/100
Issue type
Bug
Clarity
Needs clarification
Activity status
Stale
Tech stack
javascript
Domain
tooling

Research direction

Start by reproducing the failure with the Browserify and factor-bundle configuration shown, using the watch task and handleErrors callback to observe where the compilation error is emitted. Trace the plugin and bundle error path, then verify that compilation errors reach the registered error handler without causing the watch task to fail unexpectedly.

Written by the indexing model from the issue text.

Description

When using factor-bundle as a Browserify plugin, I'm unable to catch compilation errors.

    return browserify({
            entries: src.scripts
        })
        .ignore('jquery')
        .plugin(factor, {
            o: scriptDests
        })
        .bundle({
            debug: true
        })
        .on('error', handleErrors)
        .pipe(source(bundleFilename))
        .pipe(gulp.dest(dev.scripts));

Which means my watch task fails :(.

Dominant language
JavaScript
Stars
397
Forks
24
PR merge metrics
No merged PRs in 30d

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from browserify/factor-bundle

All issues in browserify/factor-bundle

Similar issues

More JavaScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.