Giter Site home page Giter Site logo

Comments (6)

andreypopp avatar andreypopp commented on June 19, 2024

Hello, I'll try to provide separate builds with UMD.

btw. did you consider using browserify?

from backbone.projections.

mcordingley avatar mcordingley commented on June 19, 2024

It certainly is a possibility, but it's also an additional dependency that is both easy to avoid and could easily grossly complicate a setup, particularly if the project already uses something like require.js.

from backbone.projections.

mcordingley avatar mcordingley commented on June 19, 2024

Point of fact, I have a current project that uses require.js and AMD modules. It has a case in it where this code would be a big help, and I'd pull this into that project in a heart-beat, except for the difficulty of integration with the module system that I'm using.

from backbone.projections.

ericlbarnes avatar ericlbarnes commented on June 19, 2024

Just wanted add a 👍 to this. I am in a situation where this would be perfect but our code base isn't using commonjs or requirejs and not really interested in adding browserify.

from backbone.projections.

andreypopp avatar andreypopp commented on June 19, 2024

Now there's a build which exports BackboneProjections as a global. I guess you can also use this with AMD loader like require.js by supplying shim in a config:

shim: {
  "backbone.projections": {
    exports: "BackboneProjections",
    deps: ["underscore", "backbone"]
  }
}

from backbone.projections.

mcordingley avatar mcordingley commented on June 19, 2024

That works for me. Thanks!

from backbone.projections.

Related Issues (3)

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.