Created
July 18, 2014 18:21
-
-
Save cmalven/2cb8d0494d94f1459d3c to your computer and use it in GitHub Desktop.
Browserify Shim with GSAP
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
TimelineLite = require('timelineLite') | |
... | |
myTimeline = new TimelineLite; | |
// Console outputs "Uncaught TypeError: undefined is not a function" | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
... | |
"browser": { | |
"waypoints": "./bower_components/jquery-waypoints/waypoints.js", | |
"timelineLite": "./bower_components/gsap/src/uncompressed/TimelineLite.js" | |
}, | |
"browserify": { | |
"transform": [ | |
"browserify-shim", | |
"coffeeify" | |
] | |
}, | |
"browserify-shim": { | |
"waypoints": { | |
"exports": "waypoints", | |
"depends": [ | |
"jquery:jQuery" | |
] | |
}, | |
"timelineLite": "TimelineLite" | |
} | |
... | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment