Skip to content
This repository has been archived by the owner on Oct 9, 2020. It is now read-only.

Commit

Permalink
change name systemJSBuilder to builder
Browse files Browse the repository at this point in the history
  • Loading branch information
casperlamboo committed Jul 1, 2016
1 parent f76baac commit 7fd5060
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions lib/builder.js
Original file line number Diff line number Diff line change
Expand Up @@ -121,12 +121,10 @@ Builder.prototype.reset = function(baseLoader) {
baseLoader = baseLoader || this.loader || System;

var loader = this.loader = new baseLoader.constructor();
loader.builder = true;
// make builder accessible in plugins
loader.builder = this;
// put the loader in the builder environment
loader.config({ build: true });

// make builder accessible in plugins
loader.systemJSBuilder = this;

loader.import = function(name) {
return Promise.reject(new Error('Unable to import "' + name + '".\nThe incorrect instance of System is being used to System.import.'));
Expand Down

0 comments on commit 7fd5060

Please sign in to comment.