
Product
Announcing Socket Fix 2.0
Socket Fix 2.0 brings targeted CVE remediation, smarter upgrade planning, and broader ecosystem support to help developers get to zero alerts.
broccoli-es6-concatenator
Advanced tools
Transpile ES6 modules and concatenate them, recursively including modules
referenced by import
statements.
This plugin is deprecated. It uses an old version of es6-module-transpiler. The es6-module-transpiler has since been rewritten in order to correctly reflect ES6 module semantics. There is no hope to update broccoli-es6-concatenator to the new es6-module-transpiler API. Somebody will have to write a new plugin from scratch that works with the new es6-module-transpiler.
npm install --save-dev broccoli-es6-concatenator
Note: The API will change in subsequent 0.x versions.
var compileES6 = require('broccoli-es6-concatenator');
var applicationJs = compileES6(sourceTree, {
loaderFile: 'loader.js',
ignoredModules: [
'resolver'
],
inputFiles: [
'todomvc/**/*.js'
],
legacyFilesToAppend: [
'jquery.js',
'handlebars.js',
'ember.js',
],
wrapInEval: true,
outputFile: '/assets/application.js'
});
.wrapInEval
(boolean): Enable or disable wrapping each module in an eval
call with a //# sourceURL
comment. Defaults to true, though this may change in the future.
.loaderFile
(string): When specified prepends the contents of loaderFile
.
0.1.11
ignoredModules
to be a function that returns an array. This allows the
list of ignored modules to be dynamic.FAQs
ES6 transpiler and concatenator for Broccoli
The npm package broccoli-es6-concatenator receives a total of 18 weekly downloads. As such, broccoli-es6-concatenator popularity was classified as not popular.
We found that broccoli-es6-concatenator demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Product
Socket Fix 2.0 brings targeted CVE remediation, smarter upgrade planning, and broader ecosystem support to help developers get to zero alerts.
Security News
Socket CEO Feross Aboukhadijeh joins Risky Business Weekly to unpack recent npm phishing attacks, their limited impact, and the risks if attackers get smarter.
Product
Socket’s new Tier 1 Reachability filters out up to 80% of irrelevant CVEs, so security teams can focus on the vulnerabilities that matter.