Closed mschwartz closed 10 years ago
If momentjs is added to a project via bower, you require() it in decaf thus:
var moment = require('moment/moment');
In the bower_components/moment directory, is moment's bower.json, which includes a main member that evaluates to "moment.js".
So
var moment = require('moment');
Should work by loading bower.json, finding that main: "member.js" and loading moment/moment.js
Fixed. Handles package.json and bower.json files.
If momentjs is added to a project via bower, you require() it in decaf thus:
In the bower_components/moment directory, is moment's bower.json, which includes a main member that evaluates to "moment.js".
So
Should work by loading bower.json, finding that main: "member.js" and loading moment/moment.js