Git Product home page Git Product logo

Comments (6)

3rd-Eden avatar 3rd-Eden commented on August 20, 2024

Hey,

I'm definitely interested in having requirejs support. There's already some module bootstapping code that should make importing easier but I can see that the require statements become an issue for requirejs support. There are some issues how ever.

  • It shouldn't break Node.js support as the primus.js is also ran on the server.
  • It shouldn't break browserify support.
  • There are require statements in the client code from the Transformers as well. There isn't really a nice way to get around those I imagine.
  • Engine.IO is build with componentjs which uses it's own require code so that will probably clash with requirejs as well.

from primus.

balupton avatar balupton commented on August 20, 2024

See docpad/docpad-plugin-livereload#5 (comment) for how DocPad users are getting over this

from primus.

mlebrun avatar mlebrun commented on August 20, 2024

@balupton I've got Primus in my require.js shim config. But the issue is that for some reason, the try/catch is throwing an error that isn't actually being caught. I checked the thread you linked to, but I'm not sure I see the answer, could you elaborate?

from primus.

mlebrun avatar mlebrun commented on August 20, 2024

By loading the Primus stuff before the require.js library?

from primus.

3rd-Eden avatar 3rd-Eden commented on August 20, 2024

Could 06eae1a be a fix for this?

from primus.

3rd-Eden avatar 3rd-Eden commented on August 20, 2024

I'm going to close this with the assumption that the commit referenced above fixed it. If this is not the case or if there happens to be a regression, feel free to re-open or give me a heads up about it.

from primus.

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.