Comments (6)
{
"scripts": {
"dist": "browserify --standalone backboneApiClient index.js > dist/backbone-api-client.js"
}
}
from backbone-api-client.
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.
-.- 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.
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.
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.
seems legit.
from backbone-api-client.
Related Issues (3)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from backbone-api-client.