systemjs-builder
Advanced tools
Comparing version 0.1.2 to 0.1.3
@@ -36,3 +36,3 @@ var System = require('systemjs'); | ||
if (!tree.operand.identifierToken || tree.operand.identifierToken.value != 'define') | ||
return; | ||
return ScopeTransformer.prototype.transformCallExpression.call(this, tree); | ||
@@ -340,2 +340,4 @@ var args = tree.args.args; | ||
exports.compile = function(load, normalize, loader) { | ||
console.log(load.name); | ||
console.log(load.metadata.isAnon); | ||
var output = load.metadata.parseTree; | ||
@@ -348,5 +350,7 @@ var transformer = new AMDDefineRegisterTransformer(load, load.metadata.isAnon, normalize ? load.depMap : {}); | ||
// because we've blindly replaced the define statement from AMD with a System.register call | ||
// we have to ensure we still trigger any AMD guard statements in the code by creating a dummy define which isn't called | ||
return Promise.resolve({ | ||
source: output.js | ||
source: '(function() {\nfunction define(){}; define.amd = true;\n ' + output.js.replace(/\n/g, '\n ') + '})();' | ||
}); | ||
} |
@@ -27,4 +27,2 @@ // Converts globals into a form that will define the module onto the loader | ||
load.source | ||
return Promise.resolve({ | ||
@@ -31,0 +29,0 @@ source: globalOutput(load.name, deps, load.metadata.exports, load.metadata.init, load.source) |
12
index.js
@@ -151,4 +151,9 @@ var Promise = require('rsvp').Promise; | ||
exports.config = function(config) { | ||
loader.config(config); | ||
pluginLoader.config(config); | ||
var cfg = {}; | ||
for (var p in config) { | ||
if (p != 'bundles') | ||
cfg[p] = config[p]; | ||
} | ||
loader.config(cfg); | ||
pluginLoader.config(cfg); | ||
} | ||
@@ -213,4 +218,3 @@ | ||
if (config) { | ||
loader.config(config); | ||
pluginLoader.config(config); | ||
exports.config(config); | ||
} | ||
@@ -217,0 +221,0 @@ |
{ | ||
"name": "systemjs-builder", | ||
"version": "0.1.2", | ||
"version": "0.1.3", | ||
"description": "", | ||
@@ -11,3 +11,3 @@ "main": "index.js", | ||
"rsvp": "^3.0.6", | ||
"systemjs": "0.8.1", | ||
"systemjs": "0.8.2", | ||
"traceur": "0.0.58" | ||
@@ -14,0 +14,0 @@ }, |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
72820
1819
+ Addedsystemjs@0.8.2(transitive)
- Removedsystemjs@0.8.1(transitive)
Updatedsystemjs@0.8.2