Jump to content
Search Community

Curly Brackets

Members
  • Posts

    1
  • Joined

  • Last visited

Curly Brackets's Achievements

0

Reputation

  1. I followed the above steps. However, I am getting this now: Cannot find module "../TweenLite.js" even tho it obviously exists. Adding this however, fixes the issue (at the end of Draggable.js): //export to AMD/RequireJS and CommonJS/Node (precursor to full modular build system coming at a later date) (function(name) { "use strict"; var getGlobal = function() { return (_gsScope.GreenSockGlobals || _gsScope)[name]; }; if (typeof(module) !== "undefined" && module.exports) { //node require("gsap/TweenLite.js"); require("gsap/CSSPlugin.js"); module.exports = getGlobal(); } else if (typeof(define) === "function" && define.amd) { //AMD define(["gsap/TweenLite", "gsap/CSSPlugin"], getGlobal); } }("Draggable"));
×
×
  • Create New...