Created
November 1, 2012 20:35
-
-
Save gsmcwhirter/3996314 to your computer and use it in GitHub Desktop.
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
//Snip from build | |
require.alias("forbeslindesay-booting-sub-nav/index.js", "dynamics-visualization/deps/booting-sub-nav/index.js"); | |
require.alias("forbeslindesay-booting-sub-nav/scroll.js", "dynamics-visualization/deps/booting-sub-nav/scroll.js"); |
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
/* - components.json has this as a script | |
* - "forbeslindesay-booting-sub-nav": "*" is listed as a dependency | |
* - the index.html file does the equivalent of "require('my-app').setup()" | |
* - by "fails" I mean that an error is thrown: failed to require "booting-sub-nav/scroll" from "my-app/index.js" (or the equivalent name tried below) | |
*/ | |
var bsnav = require("booting-sub-nav") //works just fine | |
, bsnav_scroll = require("booting-sub-nav/scroll") //fails | |
//, bsnav_scroll2 = require("forbeslindesay-booting-sub-nav/scroll") //also fails | |
//, bsnav_scroll3 = require("booting-sub-nav/scroll.js") //also fails | |
//, bsnav_scroll4 = require("forbeslindesay-booting-sub-nav/scroll.js") //also fails | |
; | |
function setup(){ | |
//do some stuff | |
} | |
module.exports = { | |
setup: setup | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment