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

broccoli-es6modules

Package Overview
Dependencies
Maintainers
3
Versions
20
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

broccoli-es6modules - npm Package Compare versions

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;
}
});

2

package.json
{
"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, {

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