Comments (6)
Hello, I'll try to provide separate builds with UMD.
btw. did you consider using browserify?
from backbone.projections.
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.
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.
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.
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.
That works for me. Thanks!
from backbone.projections.
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.projections.