Skip to content

Commit

Permalink
Do not load things that are already shimmed.
Browse files Browse the repository at this point in the history
  • Loading branch information
daffl committed Apr 17, 2013
1 parent 28781f4 commit 2af9e9d
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions lib/build/pluginify.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,9 @@ function pluginifySteals(steals, options, callback) {

// Go through all dependencies
opener.visit(steals, function (stl, id, visited, index) {
// If the steal has its content loaded (done by the opener)
if (stl.options.text) {
// If the steal has its content loaded (done by the opener) and we don't have a registered
// variable name for that module
if (stl.options.text && !nameMap[id]) {
// Create a variable name containing the visited array length
var variableName = '__m' + index;
// Set the variable name for the current id
Expand Down

0 comments on commit 2af9e9d

Please sign in to comment.