Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

systemjs-builder

Package Overview
Dependencies
Maintainers
1
Versions
139
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

systemjs-builder - npm Package Compare versions

Comparing version 0.5.2 to 0.5.3

test/tree/component.jsx

9

compilers/amd.js

@@ -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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc