Giter VIP home page Giter VIP logo

Comments (12)

nikku avatar nikku commented on June 12, 2024

We should probably wait until browserify 5.x stabilizes. At the moment this guy pushes 3 releases per day.

from karma-browserify.

terinjokes avatar terinjokes commented on June 12, 2024

It's stabilized a bit more now.

from karma-browserify.

bendrucker avatar bendrucker commented on June 12, 2024

Yup. There's an issue with transforms that I'm looking at now. Less daunting than expected though.

from karma-browserify.

terinjokes avatar terinjokes commented on June 12, 2024

I work a lot on browserify and plugins, so happy to look at sometime if you've got a test case.

from karma-browserify.

bendrucker avatar bendrucker commented on June 12, 2024

For some reason transforms aren't being run — can't figure out why for the life of me. It's not a module resolution issue. If you pass in a function directly it's never called.

from karma-browserify.

nikku avatar nikku commented on June 12, 2024

@terinjokes Please checkout the browserify-5-support branch. I started to work on some of the browserify 4.x -> 5.x conversion issues and the branch contains the current work in progress state.

A number of test cases fail (transforms ...). If you have time, try to get them green and we are ready to upgrade to browserify 5.

from karma-browserify.

bendrucker avatar bendrucker commented on June 12, 2024

The transform thing is driving me nuts. Can't for the life of me figure out why it's broken.

from karma-browserify.

bendrucker avatar bendrucker commented on June 12, 2024

Took care of transforms. Error handling is bizarre. This is bubbling up to the process:

https://github.com/substack/stream-splicer/blob/master/index.js#L131

It's not happening in a simplified example though

from karma-browserify.

bendrucker avatar bendrucker commented on June 12, 2024

Definitely a karma-bro bug and probably related to the way the bundle is deferred. Replacing util.defer(buildBundle, 1000) with buildBundle fixes the uncaught error event. It's then unhandled in https://github.com/Nikku/karma-bro/blob/browserify-5-support/lib/bro.js#L271

from karma-browserify.

nikku avatar nikku commented on June 12, 2024

@bendrucker I did some more work on the the branch.

I got all test cases green on a local development branch. Still the update behavior is absolutely broken and I need to find a way to fix that properly.

Updating the plug-in to work with browserify 5x is super hard. One problem is that browserify automagically builds bundles and reports errors (and assumes an error handler to be registered).
So there is no simple build-after all files have been added as in browserify 4.x.

I hope to find some more time to look into that this weekend.

from karma-browserify.

bendrucker avatar bendrucker commented on June 12, 2024

Sounds good. Will be curious to see what you've done thus far when you have a chance to push.

from karma-browserify.

nikku avatar nikku commented on June 12, 2024

Update the branch. Tests green but actual usage is still totally broken. Lets move the discussion to #18.

from karma-browserify.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.