broccoli-es6modules
Advanced tools
Comparing version 0.5.0 to 0.5.1
11
index.js
@@ -103,4 +103,6 @@ var CachingWriter = require('broccoli-caching-writer'); | ||
For per-file transpilations if the format is 'namedAmd', the 'amdName' option passed to the transpiler | ||
for each file will be the files relative file path, with '.js' stripped from it. | ||
* For per-file transpilations if the format is 'namedAmd', the 'amdName' option passed to the transpiler | ||
for each file will be the files relative file path, with '.js' stripped from it. | ||
* For per-file transpilations if `sourceMap` option is provided, the `sourceMapSource` option is passed | ||
to the transpiler for each file as the relative file path, with '.js' stripped from it. | ||
@@ -252,2 +254,6 @@ So, if you have the following tree: | ||
if (providedOptions.sourceMap) { | ||
options.sourceMapSource = moduleName; | ||
} | ||
for (var keyName in providedOptions) { | ||
@@ -257,4 +263,5 @@ options[keyName] = providedOptions[keyName]; | ||
return options; | ||
} | ||
}); |
{ | ||
"name": "broccoli-es6modules", | ||
"version": "0.5.0", | ||
"version": "0.5.1", | ||
"description": "An es6 module transpiler & concatenator for broccoli.", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -126,4 +126,4 @@ #broccoli-es6modules | ||
Because the ES6Modules uses each file's name as its module name, the esperanto `amdName` | ||
option is ignored. | ||
Because the ES6Modules uses each file's name as its module name, the esperanto `amdName` and | ||
`sourceMapSource` options are ignored. | ||
@@ -130,0 +130,0 @@ ### bundleOptions |
@@ -130,2 +130,14 @@ /* global describe, afterEach, it, expect */ | ||
it('sets sourceMapSource if source maps are enabled', function() { | ||
var tree = new ES6(fixtures, { | ||
esperantoOptions: { | ||
sourceMap: 'inline' | ||
} | ||
}); | ||
var result = tree._generateEsperantoOptions('some-path/here'); | ||
expect(result.sourceMapSource).to.equal('some-path/here'); | ||
}); | ||
it('compiles to cjs if format = cjs', function() { | ||
@@ -132,0 +144,0 @@ var tree = new ES6(fixtures, { |
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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
25547
569
0