systemjs-builder
Advanced tools
Comparing version 0.5.2 to 0.5.3
@@ -398,5 +398,10 @@ var System = require('systemjs'); | ||
var options = {}; | ||
if (opts.sourceMaps) { | ||
if (opts.sourceMaps) | ||
options.sourceMaps = 'memory'; | ||
} | ||
if (opts.lowResolutionSourceMaps) | ||
options.lowResolutionSourceMap = true; | ||
if (load.metadata.sourceMap) | ||
options.inputSourceMap = load.metadata.sourceMap; | ||
var compiler = new traceur.Compiler(options); | ||
@@ -403,0 +408,0 @@ |
@@ -73,3 +73,3 @@ var path = require('path'); | ||
return new Script(tree.location, parseStatements([ | ||
'System.register("' + this.name + '", ' + JSON.stringify(this.deps) + ', true, function(require, exports, module) {\n', | ||
'System.register("' + this.name + '", ' + JSON.stringify(this.deps) + ', true, function(require, exports, module) {\n', | ||
'});'], scriptItemList)); | ||
@@ -82,3 +82,8 @@ } | ||
options.sourceMaps = 'memory'; | ||
if (opts.lowResolutionSourceMaps) | ||
options.lowResolutionSourceMap = true; | ||
if (load.metadata.sourceMap) | ||
options.inputSourceMap = load.metadata.sourceMap; | ||
var compiler = new traceur.Compiler(options); | ||
@@ -85,0 +90,0 @@ var tree = compiler.parse(load.source, load.address); |
@@ -36,6 +36,11 @@ var traceur = require('traceur'); | ||
options.moduleName = load.name; | ||
if (opts.sourceMaps) { | ||
if (opts.sourceMaps) | ||
options.sourceMaps = 'memory'; | ||
} | ||
if (opts.lowResolutionSourceMaps) | ||
options.lowResolutionSourceMap = true; | ||
if (load.metadata.sourceMap) | ||
options.inputSourceMap = load.metadata.sourceMap; | ||
var compiler = new traceur.Compiler(options); | ||
@@ -42,0 +47,0 @@ |
@@ -78,5 +78,11 @@ var traceur = require('traceur'); | ||
var options = { script: true }; | ||
if (opts.sourceMaps) | ||
options.sourceMaps = 'memory'; | ||
if (opts.lowResolutionSourceMaps) | ||
options.lowResolutionSourceMap = true; | ||
if (load.metadata.sourceMap) | ||
options.inputSourceMap = load.metadata.sourceMap; | ||
var compiler = new traceur.Compiler(options); | ||
@@ -83,0 +89,0 @@ var tree = compiler.parse(load.source, load.address); |
@@ -24,3 +24,3 @@ var traceur = require('traceur'); | ||
&& tree.operand.operand.identifierToken.value == 'System') { | ||
var firstArg = tree.args.args[0]; | ||
@@ -43,5 +43,11 @@ | ||
var options = { script: true }; | ||
if (opts.sourceMaps) | ||
options.sourceMaps = 'memory'; | ||
if (opts.lowResolutionSourceMaps) | ||
options.lowResolutionSourceMap = true; | ||
if (load.metadata.sourceMap) | ||
options.inputSourceMap = load.metadata.sourceMap; | ||
var compiler = new traceur.Compiler(options); | ||
@@ -52,3 +58,3 @@ var tree = compiler.parse(load.source, load.address); | ||
tree = transformer.transformAny(tree); | ||
// if the transformer didn't find an anonymous System.register | ||
@@ -55,0 +61,0 @@ // then this is a bundle itself |
@@ -173,3 +173,8 @@ var Promise = require('rsvp').Promise; | ||
var curSystem = global.System; | ||
global.System = loader; | ||
global.System = { | ||
config: function(cfg) { | ||
loader.config(cfg); | ||
pluginLoader.config(cfg); | ||
} | ||
}; | ||
new Function(source.toString()).call(global); | ||
@@ -176,0 +181,0 @@ global.System = curSystem; |
@@ -102,3 +102,3 @@ var saucy = require('./sourcemaps'); | ||
}); | ||
output.sourceMap = sourceMap.toString(); | ||
output.sourceMap = sourceMap && sourceMap.toString(); | ||
@@ -105,0 +105,0 @@ return output; |
{ | ||
"name": "systemjs-builder", | ||
"version": "0.5.2", | ||
"version": "0.5.3", | ||
"description": "SystemJS Build Tool ===", | ||
@@ -13,3 +13,3 @@ "main": "index.js", | ||
"source-map": "~0.1.8", | ||
"systemjs": "^0.11.0", | ||
"systemjs": "^0.11.2", | ||
"traceur": "0.0.79", | ||
@@ -19,3 +19,4 @@ "uglify-js": "^2.4.15" | ||
"devDependencies": { | ||
"es6-module-loader": "0.11.0" | ||
"es6-module-loader": "0.11.2", | ||
"react-tools": "^0.12.1" | ||
}, | ||
@@ -22,0 +23,0 @@ "repository": { |
@@ -64,3 +64,3 @@ SystemJS Build Tool | ||
### Loading a Separate Config File | ||
### Setting Configuration | ||
@@ -78,4 +78,8 @@ To load a SystemJS configuration file, containing configure calls like: | ||
// `builder.loadConfig` will load config from a file | ||
builder.loadConfig('./cfg.js') | ||
.then(function() { | ||
// additional config can also be set through `builder.config` | ||
builder.config({ baseURL: 'file:' + process.cwd() }); | ||
return builder.build('myModule', 'outfile.js'); | ||
@@ -86,5 +90,7 @@ }); | ||
To reset the loader for a new build, run `builder.reset()`. | ||
Multiple config calls can be run, which will combine into the loader configuration. | ||
To reset the loader state and configuration for a new build, run `builder.reset()`. | ||
### SFX Bundles | ||
@@ -91,0 +97,0 @@ |
@@ -83,3 +83,3 @@ "format register"; | ||
// if already in a group, remove from the old group | ||
if (depEntry.groupIndex) { | ||
if (depEntry.groupIndex !== undefined) { | ||
groups[depEntry.groupIndex].splice(indexOf.call(groups[depEntry.groupIndex], depEntry), 1); | ||
@@ -359,2 +359,2 @@ | ||
System.register(...); | ||
}); */ | ||
}); */ |
@@ -5,3 +5,4 @@ import 'jquery-cdn'; | ||
import './amd'; | ||
import './component.jsx!./jsx'; | ||
export var p = 5; |
Sorry, the diff of this file is not supported yet
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
Uses eval
Supply chain riskPackage uses dynamic code execution (e.g., eval()), which is a dangerous practice. This can prevent the code from running in certain environments and increases the risk that the code may contain exploits or malicious behavior.
Found 1 instance in 1 package
Dynamic require
Supply chain riskDynamic require can indicate the package is performing dangerous or unsafe dynamic code execution.
Found 1 instance in 1 package
209
3
1
74481
2
56
1746
Updatedsystemjs@^0.11.2