systemjs-builder
Advanced tools
Comparing version 0.16.9 to 0.16.10
@@ -84,3 +84,4 @@ API Documentation | ||
`expression`: A [module tree expression](#module-tree-expressions) | ||
`moduleNames`: An array of exact, unnormalized module names | ||
`moduleNames`: An array of exact, unnormalized module names \ | ||
**Important**: The module names in `expression` or `moduleNames` should only be `/` separated (On Windows, do NOT use `\` as your path separator for this argument). The module names are specified in URL space; in particular, they are not file-paths. \ | ||
`outfile`: The file to write out the bundle to | ||
@@ -116,3 +117,4 @@ `options`: Additional bundle options as outlined below | ||
`tree`: A tree object as returned from builder.trace(), or one of the arithmetic functions | ||
`expression`: A [module tree expression](#module-tree-expressions) | ||
`expression`: A [module tree expression](#module-tree-expressions) \ | ||
**Important**: The module names in `expression` or `moduleNames` should only be `/` separated (On Windows, do NOT use `\` as your path separator for this argument). The module names are specified in URL space; in particular, they are not file-paths. \ | ||
`outfile`: The file to write out the bundle to | ||
@@ -132,3 +134,4 @@ `options`: Additional bundle options as outlined in `builder.bundle()` | ||
`expression`: A [module tree expression](#module-tree-expressions) | ||
`expression`: A [module tree expression](#module-tree-expressions) \ | ||
**Important**: The module names in `expression` should only be `/` separated (On Windows, do NOT use `\` as your path separator for this argument). The module names are specified in URL space; in particular, they are not file-paths. | ||
@@ -135,0 +138,0 @@ Returns a promise which resolves with the module tree |
@@ -599,4 +599,5 @@ var Promise = require('bluebird'); | ||
opts.uglify = opts.uglify || {}; | ||
opts.uglify.output = opts.uglify.output || {}; | ||
opts.uglify.compress = opts.uglify.compress || {}; | ||
opts.uglify.beautify = opts.uglify.beautify || {}; | ||
opts.uglify.beautify = opts.uglify.beautify || opts.uglify.output; | ||
@@ -603,0 +604,0 @@ // NB deprecated these for uglify directly |
@@ -233,2 +233,6 @@ var rollup = require('rollup'); | ||
external: aliasedExternals, | ||
acorn: { | ||
allowReserved: true, | ||
ecmaVersion: 8 | ||
}, | ||
plugins: [{ | ||
@@ -235,0 +239,0 @@ resolveId: function(id, importer, options) { |
@@ -48,3 +48,3 @@ var sourceMap = require('source-map'); | ||
for (var i=0; i<map.sources.length; i++) { | ||
var source = (map.sourceRoot || '') + map.sources[i]; | ||
var source = path.normalize(path.isAbsolute(map.sources[i]) ? map.sources[i] : (map.sourceRoot || '') + map.sources[i]).replace(/\\/g, '/'); | ||
if (!source.match(/\/@traceur/)) { | ||
@@ -102,3 +102,3 @@ if (!contentsBySource[source]) { | ||
return path.relative(outPath, path.resolve(basePath, source)).replace(/\\/g, '/'); | ||
return path.isAbsolute(source) ? source : path.relative(outPath, path.resolve(basePath, source)).replace(/\\/g, '/'); | ||
}); | ||
@@ -105,0 +105,0 @@ |
{ | ||
"name": "systemjs-builder", | ||
"version": "0.16.9", | ||
"version": "0.16.10", | ||
"description": "SystemJS Build Tool", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
185278
4066