Git Product home page Git Product logo

Comments (6)

Raynos avatar Raynos commented on May 31, 2024
{
  "scripts": {
    "dist": "browserify --standalone backboneApiClient index.js > dist/backbone-api-client.js"
  }
}

from backbone-api-client.

twolfson avatar twolfson commented on May 31, 2024

Close but we don't want to include underscore as part of the dependencies. It should be resolved by the UMD itself as per Backbone

https://github.com/jashkenas/backbone/blob/1.1.2/backbone.js#L8-L28

define(['underscore'], function (_) {
OR
require('underscore')
OR
this._

from backbone-api-client.

Raynos avatar Raynos commented on May 31, 2024

-.- this is solved by depending on xtend instead of underscore.

xtend is so small that duplicating it in AMD environments is no big deal.

from backbone-api-client.

Raynos avatar Raynos commented on May 31, 2024

if AMD want to reduce size even further then that then they can use their own tools to make the commonJS source AMD compliant outside of this module.

Wrapping your code with UMD seems silly, since UMD is a tooling concern not a source code concern.

from backbone-api-client.

twolfson avatar twolfson commented on May 31, 2024

I would prefer to be more friendly to the end user by keeping it consistent with Backbone and taking care of the deduplication.

UMD might be a tooling concern but it does impact source code making them not mutually exclusive.

from backbone-api-client.

Raynos avatar Raynos commented on May 31, 2024

seems legit.

from backbone-api-client.

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.